How to create & edit my custom .htaccess file

Hi all,
I am trying to add a .htaccess file into my /htdocs folder.

  1. used filemanager in main panel of infinityfree.com
    2)used remote FTP manager(like filezilla) to upload it to my /htdocs folder
    But in both, after a some time, file dissappeared! Why?
    Thanks.
4 Likes

My .htaccess file is 3KB and I am definetely upload it into /htdocs folder. But I think maybe item “You have a complex set of rewrite rules” can suit the situation. Ok, I will look out how to clean it. Thanks Greenreader9.

1 Like

Ok, actually found that :slight_smile:

1) “RewriteCond %{HTTP_REFERER} !^$”
2) Header set X-XSS-Protection “1; mode=block”
3) Header set X-Content-Type-Options “nosniff”

rules caused this problem in my case. I removed them and .htaccess file is loaded successfully and it is there. :smiley: I hope that helps others.

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