htaccess Redirect Issue

Avatar
  • Answered
I have read your article and implemented in htaccess file.' Done with php my admin I want this to be http://rang.comli.com/servicecnt/service_id/5 my .htaccess file Options +FollowSymLinks -MultiViews # Turn mod_rewrite on RewriteEngine On RewriteBase / ## hide .php extension # To externally redirect /public_html/index.php to /dir/index RewriteCond %{THE_REQUEST} ^[A-Z]{3,}\s([^.]+)\.php [NC] RewriteRule ^ %1 [R,L,NC] ## To internally redirect /public_html/index to /dir/index.php RewriteCond %{REQUEST_FILENAME}.php -f RewriteRule ^ %{REQUEST_URI}.php [L] RewriteEngine On RewriteCond %{QUERY_STRING} ^service_id=([0-9]*)$ RewriteRule ^servicecnt\.php$ /servicecnt.php/%1? [R=302,L]
Avatar
Scott
Hello, Thank you for your redirect question today. I did a check on your site with the referenced URL and see that it is redirecting as you desired. This appears you were able to correct the issue. If you would like to assist others who may have the same question, you can reply here with a sample of the code that worked for you. Kindest Regards, Scott M