Username (e.g. epiz_XXX) or Website URL
glitchnetwork.cf
Error Message
.htaccess file gets deleted for no reason
Other Information
When i uploading .htaccess file to my account it’s keeps deleting and deleting.
glitchnetwork.cf
.htaccess file gets deleted for no reason
When i uploading .htaccess file to my account it’s keeps deleting and deleting.
Adding more information - .htaccess file is 12kb weight.
Welcome, take note
The size limits are:
You need to trim .htaccess files to < 10kB
How i can them make lower it? It’s just 12kb but it’s need for my engine
The article @KangJL linked to actually lists quite a few ways the .htaccess file can be made smaller.
If you checked that and you still don’t know what to do, maybe you could share it here so we can have a look?
Like, my .htaccess is just have anything that engine need and i don’t know what to delete.
Nuke the code comments then. Remove all empty lines. (PSA: There is a reason for code comments, so store it away somewhere for future reference just in case you ever need it.)
Out of curiosity, what engine is that?
Yes, you said that already. And then I said you should check the documentation for general tips or share the file so we can have a look at that.
I have personally helped people before with large .htaccess files which “were all required for the website to work”. But then with a few simple changes could be cut down to half the size or less.
Just because you don’t know what you can do to slim down the file doesn’t mean the file can’t be slimmed down. And we’re here to help you with that.
What @KangJL said was a good idea but it only shaves off 0.6KB. if you remove <“IfModule mod_deflate.c”> and <“IfModule mod_expires.c”> it’s > 10KB
Take note movie sharing is not allowed.
OK, yes, this file isn’t trivial to clean.
You could remove some of the cache and mod security controls. Most of those are already enforced by default, and we don’t have a mod security to disable at all.
But to get the really big gains, I would definitely suggest to rewrite the application to route URLs in PHP instead of defining every URL and action in the .htaccess file. Virtually every framework and CMS works like that.
This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.