.htaccess leads to 500 error
.htaccess starts like this:
RewriteEngine On
RewriteRule
log files read liek this:
[Sun Feb 02 20:30:20 2014] [alert] [client someIP] /home/somename/public_html/somename/.htaccess: Invalid command '\fgfgf\xghb\xgfRewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
-
Hello, Can you cat that .htaccess file here? # cat /home/homename/public_html/somename/.htaccess0 -
Here is the code of .htaccess Thanks [QUOTE]RewriteEngine On RewriteRule ^erer-([^/]*)$ /diploma/kivkiv.php?id=$1 [L] # A 404-es hibaoldal "tir"ny"t"sa a 404page.php-re: ErrorDocument 404 /diploma/404page.php RewriteRule ^fiefie-([^/]*)$ /diploma/felh_profil.php?profil_fiefie=$1 [L] RewriteRule ^ererid-([^-]*)$ /diploma/kivkiv3.php?id=$1 [L] RewriteRule ^uj_feltoltes$ /diploma/uj_feltoltes.php [L] RewriteRule ^profil$ /diploma/profil.php [L] RewriteRule ^kijelentkezes$ /diploma/kijelentkezes.php [L] RewriteRule ^kiekie$ /diploma/kiekie.php [L] RewriteRule ^erer_szerkesztes$ /diploma/szerkesztes.php [L] #Az index: RewriteRule ^index$ /diploma/index.php [L] RewriteRule ^feltolto-([^-]*)$ /diploma/felh_ereri.php?feltolto=$1 [L] RewriteRule ^admin_bevbev$ /diploma/admin_belep.php [L] RewriteRule ^regreg$ /diploma/regreg.php [L] 0 -
Hello :) Check to make sure the file is formatted correctly. It's possible that it was edited on another environment (e.g Windows) and uploaded with invalid characters. Typically, you can run the following command to resolve this: dos2unix /path/to/file
If that does not help, try creating a new .htaccess file and adding those entries back in through a Linux text editor such as "vi". Note: You may have to install the "dos2unix" package via YUM. Thank you.0
Please sign in to leave a comment.
Comments
3 comments