.htaccess keeps getting removed when editing it

Hello, I have recently run into a problem where my .htaccess file is being deleted when editing it. I have tried creating a overite .htaccess file in the htdocs directory. Here is what I’m trying to upload into the .htaccess:

https://docs.google.com/document/d/1sr1PMz4qlf0QnQO_QhboNIh7FUa8uWHjTT8MIJ5RiSU/edit?usp=sharing

From documentation:

.htaccess files are limited to 10 kB.

Your file is 24kB.

4 Likes

Thank you, I’ve tried compressing it do you have any tips to get it in?

couldn’t find a way

Remove unnecessary code perhaps

1 Like

You have a lot of comments. Remove comments for a start?

3 Likes

Please remove the lines which begins with # (which are comments)
it will reduce the file size!!!

3 Likes

If your .htaccess file is over 5MB with NO comments, that means you have too much stuff in there. The main thing I see when opening your file is that 90% is comments. Removing these will place you well below the limit.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.