I want to make the pages on my site more search engine friendly by turning the query strings into meaningful looking page names.
For example I have a page that is this:
/search.php?c=18
I want it to look like this:
/doctors/MainCategoryName-18/
Sometimes there is a second query string so it would need to work with just one or both. For example:
/search.php?c=18&s=217
Should look like
/doctors/MainCategoryName-18/SubCatrogyrName-217/
Here's what I've tried so far but I can't get it to work.
RewriteRule ^search.php?c\=(.*)* /doctors/general-$1 [NC,R=301,L]
RewriteRule ^doctors/[^?/]*-(\d+)\ /search.php?c=$1&s=$2 [QSA
Thanks so much for your help,