htaccess issues
One of my clients is newly experiencing an ISE on site load.
The error log for this site show this...
[Sun Nov 28 17:49:41.927559 2021] [core:alert] [pid 12619] [client 73.147.96.99:56967] /home/USERNAME/public_html/.htaccess: Invalid command '\xef\xbb\xbfErrorDocument', perhaps misspelled or defined by a module not included in the server configuration, referer:
-
Even when I upload an empty htaccess I get this.
Do you mean you uploaed an empty .htaccess (starting with a dot)?0 -
Yes 0 -
Then I suspect you are uploading the .htaccess to wrong place. 0 -
You suspect incorrectly. 0 -
Hello! Theunicode byte order mark for UTF-8 and apache thinks it's garbage characters (on linux at least). In windows, this BOM is used to let Windows know that the file is encoded as UTF-8 instead of whatever default windows text file uses (I think it's UTF-16, little endian). You just need to go use your favorite linux text editor, and delete those characters. Depending on what editor you use, they may not even show up, so you may need to do something like "select from the end of the word RewriteEngine to the beginning of the line, and delete selection, then, from the beginning of the line, just type RewriteEngine by hand. There's a chance that the htaccess file won't work properly once you move it back to Windows after removing the BOM, I'm not really sure. 0
Please sign in to leave a comment.
Comments
5 comments