Forum Moderators: phranque
RewriteEngine On
RewriteRule ^([^/]+)/$ /web/index.php?page=$1 [L,QSA]
This should rewrite
http://www.example.com/web/about/
to
http://www.example.com/web/index.php?page=about
but i rewrites it to
http://www.example.com/web/index.php?page=about.php
When i delete the .htaccess and i type in
http://www.example.com/web/about/
or
http://www.example.com/web/about
it automatically redirects me to http://www.example.com/web/about.php,
but i don't want that. What do i have to change in httpd.conf file?
I'm using Apache 2.0.59, PHP 5.1.6, MySQL 5.0.24a
P.S. It works on the server.