Softaculous


Topic : Htaccess file keeps getting replaced or written over with Sitepad default


Posted By: John_H2O on September 29, 2021, 4:12 am
This is a major unexpected problem.

My .htaccess files contain a lot of important code and instructions.  This was not happening originally, but just recently all my sites using SitePad are having their .htaccess files either replaced completely or written over so that only the default Sitepad instructions appear:

# BEGIN Sitepad
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L]
</IfModule>
# END Sitepad

Normally I keep that SitePad code at the end of the file so that all the other instructions can run.  Everything was working fine and as you would expect for weeks, but then suddenly this problem started happening only within the past few days.
What happened, why is this happening, and how can I stop it?
I will not be able to continue using SitePad if this cannot be turned off from happening.

Posted By: John_H2O on November 7, 2021, 4:41 pm | Post: 1
This problem was solved only for a while by changing the permissions for .htaccess to 444 instead of 644, but it just started up again and I discovered my .htaccess was automatically replaced with the default SitePad .htaccess on Nov 3 today.
Why does SitePad do this, and how can anyone use SitePad if it is going to replace one's .htaccess file like that?  And how could it even do that when the permissions were 444?

Powered By AEF 1.0.8 © 2007-2008 Electron Inc.