I would like to rewrite two urls on my website so as they are more search engine friendly. How can I do this in my .htaccess
? For the first I tried this, but got 404 errors:
RewriteRule ^research/([0-9][0-9])$ /research/$1/ [R]
RewriteRule ^research/([0-9][0-9])/$ /urt.php?func=viewresearch&rid=$1
RewriteRule ^research/([0-9])$ /research/$1/ [R]
RewriteRule ^research/([0-9])/$ /urt.php?func=viewresearch&rid=$1
For the second I tried:
RewriteEngine on
RewriteRule ^products/([0-9][0-9])$ /products/$1/ [R]
RewriteRule ^products/([0-9][0-9])/$ /viewad.php?adid=$1
When I navigate to e.g. http://www.example.com/products/12/, it redirects but it looks like there are no external files loaded (Javascript, CSS, etc.). Why would that happen?