.htaccess destroys the site (500 error)

(sorry if I should have made this into a new post)

Since updating yo 1.4.5 I am having a weird issue - any change to .htaccess destroys the site (500 error). Even if I just remove the # to force it to be secure, I get a 500 error, Any change at all breaks it.

I would like to force https but it doesn’t seem to work!

Please post the error that should be logged in your web server error logs so we know what’s the problem.

/.htaccess: Invalid command '\xef\xbb\xbf##', perhaps misspelled or defined by a module not included in the server configuration
/.htaccess: Invalid command '\xef\xbb\xbf##', perhaps misspelled or defined by a module not included in the server  /.htaccess: Invalid command '\xef\xbb\xbf##', perhaps misspelled or defined by a module not included in the server configuration, referer: (my url/dashboard)
/.htaccess: Invalid command '\xef\xbb\xbf##', perhaps misspelled or defined by a module not included in the server configuration, referer: (my url/dashboard)

This was just from removing the two #. Putting them back does not fix it, I have to reupload a new .htaccess.

This is exactly the same problem like this here: Upgraded - help - system not working

Please follow the instructions in my last reply.

Hmm weird, I was using Notepad which is all I’ve ever used and never had trouble.

Anyway, I just used my host’s web-based editor to change the file. I no longer get the 500 error, HOWEVER it does not force redirect to https and all the icons are broken.

Edit: Icons work if I manually change the url to https, but it is not 301 redirecting the page to https. I might try another edit on the htaccess and see how we go…

Edit 2: This worked:

RewriteCond %{SERVER_PORT} 80 
RewriteRule ^(.*)$ https://www.yourdomain.com/$1 [R,L]