Mobile app version of vmapp.org
Login or Join
Kevin317

: Add this to your .htaccess file residing in your DocumentRoot. RewriteEngine On RewriteBase / #To prevent Looping RewriteCond %{ENV:REDIRECT_STATUS} 200 RewriteRule ^ - [L] #To redirect the converted

@Kevin317

Add this to your .htaccess file residing in your DocumentRoot.

RewriteEngine On
RewriteBase /
#To prevent Looping
RewriteCond %{ENV:REDIRECT_STATUS} 200
RewriteRule ^ - [L]
#To redirect the converted URL to actual URL
RewriteRule ^doctors/MainCategoryName-(d+)/$ serach.php?c= [L]

RewriteRule ^doctors/MainCategoryName-(d+)/SubCatrogyrName-(d+)/$ serach.php?c=&s= [L]
#To convert your URL
RewriteCond %{QUERY_STRING} ^c=(d+)$ [NC]
RewriteRule ^serach.php /doctors/MainCategoryName-%1/? [L,R=301]

RewriteCond %{QUERY_STRING} ^c=(d+)&s=(d+)$ [NC]
RewriteRule ^serach.php /doctors/MainCategoryName-%1/SubCatrogyrName-%2/? [L,R=301]

10% popularity Vote Up Vote Down


Login to follow query

More posts by @Kevin317

0 Comments

Sorted by latest first Latest Oldest Best

Back to top | Use Dark Theme