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]
9
  • The server encountered an internal error or misconfiguration and was unable to complete your request. Dec 7, 2014 at 15:56
  • 1
    The error LOG, not the error PAGE. Dec 7, 2014 at 15:56
  • Do you have AllowOverride All in your http.conf?
    – rjdown
    Dec 7, 2014 at 15:57
  • And no error when you delete this .htacces file ? Did you send the file in text mode ?
    – Croises
    Dec 7, 2014 at 15:57
  • AllowOverride All is enabled .. yes.no error when i delete this .htacces file.. Dec 7, 2014 at 16:18

1 Answer 1

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.