.htaccess file several errors

Hello,



We believe it’s not a very difficult issue ,but we didn’t sort it out. Can anyone help us?





ERROR:

/home/indirim/public_html/.htaccess: Invalid command ‘\xef\xbb\xbfDirectoryIndex’, perhaps misspelled or defined by a module not included in the server configuration



We’re using the same htaccess file posted to this thread.

What's with all the backslashes? That string is not in the file in the thread you reference. You should only need backslashes for characters that might be interpreted by a regex expansion where you want them to have their literal values. I.e. zap.html would become 'zap.html' to the httpd processor.

Thanks for the reply.





I've checked the htaccess file again and using the same one which LeeLiPop posted.



However, we're getting this error as an alert entry in the cpanel logs even we didn't add anything into the htaccess file.



That's why: we found interesting.If any idea you have what the cause might be,pls post it.





Thank you,

This is something you need to take up with your host. It could be the main /etc/httpd.conf file that has the error within your VirtualServer.



I don't use Lee's htaccess file or any of their other recommendations. I only use gzip compression and I do NOT use any 3rd party optimizers.

It's not a problem coming from the server side.uncommenting that part of htaccess file solved our problem.



Temporary or permanent ,it's a solution indeed.