Posted by Hermann.Richter on 10/18/06 21:13
I want to rewrite URLs like
http://domain/dir/file.php?var1=val1&var2=val2#anchor
to
http://domain/dir/file?var1=val1&var2=val2#anchor
In other words, I want to strip out the php extension
I tried putting in the .htaccess file the following:
DefaultType application/x-httpd-php
But that didn't work at all.
So I tried with mod_rewrite:
RewriteRule /[^/\.]+$ %{REQUEST_FILENAME}.php
It doesn't work either!!!
I need help please. What is the problem??
My hosting server is apache 1.3.37
Thanks in advance.
Navigation:
[Reply to this message]
|