Answer the question
In order to leave comments, you need to log in
Why is RewriteEngine not working?
Good day. The following code does not work for me in .htaccess
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at [email protected] to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
Apache/2.4.18 (Ubuntu) Server at zadanie.loc Port 80
Answer the question
In order to leave comments, you need to log in
The rewrite module was not installed, figured out,
enable the required module:# a2enmod rewrite
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question