WebSite X5Help Center

 
Joern T.
Joern T.
User

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

Autor: Joern T.
Besucht 707, Followers 1, Geteilt 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

Gepostet am
1 ANTWORTEN - 1 NüTZLICH - 1 KORREKT
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

Mehr lesen
Gepostet am von Jakob S.