Shan Biswas Shan Biswas - 3 months ago 12
PHP Question

Dont know how to get mod_rewrite working in wampserver 2.5

Below is my .htaccess file code

DirectoryIndex index.html
RewriteEngine On
RewriteBase /

RewriteRule ^settings$ settings.php [L]


Removed
#
from
LoadModule rewrite_module modules/mod_rewrite.so
in the httpd.conf file.

I checked from wampmanager menu that
mod_rewrite
is enabled, there is a tick mark beside
rewrite_module
, means mod_rewrite is enabled.

Restarted wampserver several times, but still it is going to a 404 page, if I add
.php
extension then it works fine.

Any suggestions please.

Answer

put this .htaccess in DigitalEngine directory and try

DirectoryIndex index.html
RewriteEngine On
RewriteRule ^settings$ settings.php [L]