- Forums
- Linux
- What Causes 500 Error In Rewrite?
This Is A Description Of A Problem I Encountered While On A New Server That I Kept Getting This Error On My Apache Servers [3279], Last Updated: Mon Jun 24, 2024
Travis
Fri Jan 08, 2010
1 Comments
548 Visits
i just want to be sure that i put this here.
i recently moved my site to a new hosting server, and when i moved my website to the other server, my site did work as expected, instead i got this error message:
Internal Server Error
The server encountered an internal error or
misconfiguration and was unable to complete
your request.
Please contact the server administrator,
[email protected] 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.
Additionally, a 500 Internal Server Error
error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.2.3 (CentOS) Server at www.example.com Port 80i checked your tutorial here and everything checked ok:
How To Fix Mod_rewrite 500 Internal Server Error On .htaccess File Apacheso then i deleted my .htaccess file and reloaded the site, i didnt get the 500 error anymore, which tells me that the problem is with the syntax in the .htaccess file
this is how my .htaccess file looked like (the first lines)
RewriteEngine On
Options -Indexes
# SHOWS INDEX.PHP FOR ROOT WEB DIRECTORY
RewriteRule ^$ index.php [L]
so what i did was i comment out 'Options -Indexes' so i changed this line to this:
#Options -Indexes
now it worked!!!!!
https://www.webune.com/forums/what-causes-500-error-in-rewrite.html