Ssl activation, website X5 overwrites .htaccess by publishing project
Autore: Joern T.SSL activation, WebSite X5 overwrites .htaccess by publishing project
Hello,
I activated SSL on my Website be editing .htaccess .
Sadly, when I publish Project X5 overwrites my .htaccess .
As result I have to overwrite file manually again ☹.
It would be nice if I could add my additional .htaccess code at X5.
How, can I avoid overwriting .htaccess or edit .htaccess file at X5?
Ps. I would be feature, if I get an automated email when support wrote an answer.
Best Regards,
Joern
/*Website X5 Code
-------------------------------------------------*/
# WebSite X5 - Start Code [do not edit]
<IfModule mod_deflate.c>
SetOutputFilter DEFLATE
</IfModule>
# WebSite X5 - End Code
/*my code
-------------------------------------------------*/
# WebSite X5 - Start Code [do not edit]
<IfModule mod_deflate.c>
SetOutputFilter DEFLATE
#Rewrite everything to https
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
</IfModule>
# WebSite X5 - End Code
WebSite X5 überschreibt nicht die htaccess-Datei sondern ergänzt diese. Die Ergänzungen stehen zwischen
# WebSite X5 - Start Code [do not edit]
und
# WebSite X5 - End Code
Alles was in diesem Bereich steht "gehört" WebsiteX5 und sollte nicht geändert werden, da es beim nächsten upload überschrieben wird. Alles andere gehört Dir und WebsiteX5 ändert daran nichts