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?
.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)
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).
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.
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.
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.