BOM in htaccess file


Permalink 10:56:48 am, by sarneil, 129 words, 110 views   English (CA)
Categories: Announcements; Mins. worked: 90

BOM in htaccess file

I was creating an htaccess file to restrict access to a folder on I used BBedit to create the file. It's configurations said it was not include a Byte Order Mark in the file (i.e. encoding was set to UTF-8, and not UTF-8 with BOM). When I uploaded the file to the server and accessed it in the browser I got an internal server error. Sysadmin checked logs and told me there was a BOM (\xef\xbb\xbf) at the start of the file. That did not appear in BBEdit (even with Show Invisibles enabled). I opened the file in Nano and no BOM was visible in that editor either. I deleted the file and retyped it from scratch in Nano, and that worked.


No Pingbacks for this post yet...


This blog is the location for all work involving software and hardware maintenance, updates, installs, etc., both routine and urgent, in the server room, the labs and the R&D rooms.


XML Feeds