Htaccess

Why is the htaccess file deleted? :thinking:

I uploaded the React project to the host, but no matter what I do, the htaccess file is deleted

<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteBase /
  RewriteCond %{REQUEST_FILENAME} -f [OR]
  RewriteCond %{REQUEST_FILENAME} -d
  RewriteRule ^ - [L]
  RewriteRule ^ index.html [L]
</IfModule>

.htaccess is a dotfile which essentially means a hidden file. It seems that this is a recent file manager update where these files are no longer shown (But still there).

This is probably a bug because there ought to be a setting where you can display these files again.

In the meanwhile please use a desktop FTP client like FileZilla.

5 Likes

I’m sorry for the delay. It appears that there was an issue that resolved in files starting with a dot not being shown in the file manager, which includes the .htaccess file.

That has now been corrected, so you should see your .htaccess file again.

7 Likes

Yes, this file is now visible :ok_hand:

Many thanks :heart:

3 Likes

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