Forum Moderators: phranque
RewriteEngine on
RewriteCond %{HTTP_HOST}!^www\.site\.com
RewriteRule ^(.*)$ [site.com...] [R=301,L]
Now, I want to rewrite my url's that have dynamic content so they are more search engine / user friendly. Everything I read and try does not seem work for me.
I added the following:
Options +FollowSymLinks
RewriteRule file(.*)\.htm$ /file.php?prod=$1
But when I go to a page www.site.com/file.php?prod=1 the url does not change. I think I need a jump start to help me understand.
Thanks!
The basic problem is you are going the wrong way...
The link must be to the static page (does not exist), then use mod_rewrite to serve the information from the php page (does exist).
This should give you an idea:
[webmasterworld.com...]
Justin