0

I'm using Appserv Apache and i when i use .htaccess file i still getting 500 internal server error ... I tried every thing and made sure that every thing is correct and I'm removed the # from the httpd.conf file : LoadModule rewrite_module modules/mod_rewrite.so ..... and restarted the Appserv .. but i still getting 500 internal server error .. any help ?? this is the .htaccess :- Options -MultiViews

RewriteEngine On

RewriteBase /mvc/public

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f

RewriteRule ^(.+)$ index.php?url=$1 [QSA,L]
MH2K9
  • 11,951
  • 7
  • 32
  • 49

1 Answers1

0

error log : Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration

THis means you don't have mod_rewrite enabled in your server. See: .htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration

You need to either turn it on using

sudo a2enmod rewrite && sudo service apache2 restart

if you're using ubuntu, or edit your httpd.conf file and uncomment the mod rewrite line.

Community
  • 1
  • 1
Jon Lin
  • 142,182
  • 29
  • 220
  • 220