mod_rewrite

Discuss server installationa nd configuration issues here

Moderators: macek, egami, gesf

jackmaessen
New php-forum User
New php-forum User
Posts: 1
Joined: Tue Jan 08, 2013 5:21 am

mod_rewrite

Postby jackmaessen » Tue Jan 08, 2013 5:23 am

Hello,
I am trying to remove my .php extensions with rewrite_mod.
I use this code in my .htaccess file which is in the webroot:

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(.*)$ $1.php

In my apache httpd.conf file, i removed the # sign from the LoadModule
(I am running WAMP on a windows 7 machine)

But it is still not working for me
Can anyone tell me why it does not work?

Return to “Server installation and configuration”

Who is online

Users browsing this forum: No registered users and 1 guest

cron