Issue with .htaccess File Disappearing Automatically

Website URL

www.projects.com

Error Message

404 Not Found
“The page you were looking for could not be found!”

Other Information

I am experiencing an issue where my .htaccess file disappears from the htdocs folder shortly after being uploaded. I have tried:

  • Creating the .htaccess file manually and uploading it via FTP.
  • Setting file permissions to 644.
  • Testing different rewrite rules, including rewriting index.php to home and main-grids.php to store.
  • Checking documentation and forums for possible explanations.

Could you confirm if there are any restrictions on .htaccess usage on my account? If so, what alternative solutions are available for managing redirects and rewrites?

Thank you for your assistance.

Best regards,

6 Likes

What exactly are you trying to do with it?

.htaccess files have a 10kb limit. also, you should be able to set custom error pages using the domain settings ( account > domain, click “Manage” > then go to Error Pages)

Thank you for your reply.

I have ensured that the .htaccess file is placed inside the htdocs folder, yet it still disappears shortly after being uploaded. I have also tried re-uploading it via FTP and confirming that the file permissions are set correctly (644).

How big is the file?

For future reference, you don’t need to change the file permissions. The htdocs directory and everything on it already has the proper permissions for you to read and write.

4 Likes

I am trying to use the .htaccess file for URL rewriting and redirections on my website. My .htaccess file is 7.88 KB, which is below the 10 KB limit, yet it still gets deleted shortly after being uploaded.

I also need to set up custom error pages, but I would like to manage them directly through the .htaccess file rather than using the domain settings.

Could you please provide your full .htaccess code? Be sure to use the [code] block when posting it.

5 Likes

The problem I was having with the .htaccess file is now solved. After some optimizations and adjustments, everything works fine. It seems that the file size was the main cause of the problem.

Thanks for your help and responsiveness.

2 Likes

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