3

This is my htaccess file code. This code is not allowing me to access my project directory.

Code

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ profile.php?username=$1

Please help me in solving this problem. Thanks

Error:

The server encountered an internal error or misconfigured and was unable to complete request.

1 Answers1

0

go to Apache wamp\bin\apache\Apache2.4.4\conf\httpd.conf

and search for line

#LoadModule rewrite_module modules/mod_rewrite.so

and un comment it

LoadModule rewrite_module modules/mod_rewrite.so

the problem will be solved !

Engr Saddam Zardari
  • 1,057
  • 1
  • 14
  • 27
  • 1
    Enabling `mod_rewrite` don't solve the problem. If `.htaccess` is there and `mod_rewrite` is disable, it will just ignore the file. – Rahil Wazir Mar 27 '14 at 07:46