Page is a not externally linkable
- Code, Content, and Presentation
-- Apache Web Server
---- Simple to some .htaccess setup.


Monksp - 6:36 pm on Jun 6, 2005 (gmt 0)


To deal with the www. vs non-www I have the following and it works fine.

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!


Thread source:: http://www.webmasterworld.com/apache/3753.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com