mojamoi

Well-Known Member
Jul 23, 2007
195
0
66
.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
 

mojamoi

Well-Known Member
Jul 23, 2007
195
0
66
Here is the code of .htaccess

Thanks

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]
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
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:

Code:
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.