Internal Server Error with Htaccess File

Asked

Viewed 935 times

0

It all started when I switched from Easyphp to Vertrigoserv, the file. htaccess worked perfectly on Easyphp , but here I am finding these problems... I have no idea how to solve this...

HTACCESS

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L]

Response:

Internal Server Error

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

Please contact the server administrator at admin@localhost 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.
  • Probably mod_rewrite was not loaded. Make sure it is enabled in Apache. But if you want to learn more about the reason for the problem, read the Apache error log.

  • 3

    Easyphp, xampp, wamp, vertrigoServ are all just packages and installation facilitators, your problem is still with Apache, you already asked yourself a question on the subject, in Vertrigoserv is the same thing, it uses apache so follow the answer tips here Internal Server Error with . htaccess Linux Mint file Understand as a constructive criticism =)

  • 3

    Possible duplicate of Error installing script on localhost

1 answer

1

If this makes the error disappear your REWRITE module is not enabled.

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L]
</IfModule>

Activate the module as per your server’s instructions.

  • 1

    The -1 is not mine, but there is something strange in the formatting/ text... check if it is according to my edition.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.