WebSite X5Help Center

 
Joern T.
Joern T.
User

Ssl activation, website X5 overwrites .htaccess by publishing project  de

Author: Joern T.
Visited 458, Followers 1, Shared 0  

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

https://www.mehr-dates.info/

/*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

Posted on the
1 ANSWERS - 1 USEFUL - 1 CORRECT
Jakob S.
Jakob S.
User

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

Read more
Posted on the from Jakob S.