简体   繁体   中英

still get 500 internal server error appserv

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]

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM