0
votes

I'm getting the following error

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

Please contact the server administrator, webmaster@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. Apache/2.2.22 (Ubuntu) Server at 111.118.254.188 Port 80

Im running a XAMPP server here is my htaccess file, I don't understand what the problem is.

# Customized error messages.
ErrorDocument 404 /index.php

# Set the default handler.
DirectoryIndex index.php

# Various rewrite rules.
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L,QSA]
</IfModule>
1
What is the file permission to your .htaccess file? - Subodh Ghulaxe
What is your Apache logs saying? - D4V1D
@talsibony - Please note the <IfModule mod_rewrite.c> part. Just not running mod_rewrite should not trigger a 500 status code. - Álvaro González
There are numerous reasons a 500 error can be thrown, even an error in your php file. The first step would be to check your error logs. And try to rename your .htaccess to be sure it's the .htaccess file that's causing the error. - giorgio

1 Answers

-1
votes

You should add RewriteBase to define the per-directory prefix.

Also try adding :

Options +FollowSymLinks