I need help with my .htaccess
That is what I see in it currently:
RewriteOptions inherit
RewriteEngine On
RewriteRule ^.*-p[\d]+$ %{REQUEST_URI}/../index.html
RewriteRule ^.*-c[\d]+$ %{REQUEST_URI}/../index.html
RewriteRule ^.*cart$ %{REQUEST_URI}/../index.html
RewriteRule ^.*search.*$ %{REQUEST_URI}/../index.html
RewriteRule ^.*checkout/.+$ %{REQUEST_URI}/../index.html
RewriteRule ^.*account/.+$ %{REQUEST_URI}/../index.html
RewriteRule ^.*pages/.+$ %{REQUEST_URI}/../index.html
RewriteRule ^.*signIn.*$ %{REQUEST_URI}/../index.html
RewriteRule ^.*resetPassword.*$ %{REQUEST_URI}/../index.html
RewriteRule ^.*checkoutAB.*$ %{REQUEST_URI}/../index.html
RewriteRule ^.*downloadError.*$ %{REQUEST_URI}/../index.html
RewriteRule ^.*checkoutResult.*$ %{REQUEST_URI}/../index.html
RewriteRule ^.*checkoutWait.*$ %{REQUEST_URI}/../index.html
RewriteRule ^.*orderFailure.*$ %{REQUEST_URI}/../index.html
RewriteRule ^.*checkoutCC.*$ %{REQUEST_URI}/../index.html
RewriteRule ^.*checkoutEC.*$ %{REQUEST_URI}/../index.html
RewriteRule ^.*checkoutAC.*$ %{REQUEST_URI}/../index.html
RewriteRule ^.*FBAutofillCheckout.*$ %{REQUEST_URI}/../index.html
RewriteCond %{HTTPS} off
RewriteCond %{HTTP:X-Forwarded-SSL} !on
RewriteCond %{HTTP_HOST} ^www.frenchlinensonline.com$
RewriteRule ^/?$ “https://www.frenchlinensonline.com/” [R=301,L]
I need FORCE HTTPS and WWW
I see code to do it here: Some generic htaccess redirects
Code recommended is this:
Force HTTPS and force WWW:
# Force HTTPS and force WWW (this is a comment)
RewriteEngine On
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteCond %{HTTP_HOST} ^(?:www\.)?(.+)$ [NC]
RewriteRule ^ https://www.%1%{REQUEST_URI} [L,NE,R=301]
What do I do?
Do I erase everything that is already in place and replace with the code recommended?
Do I add the code recommended and keep in place what is already there?
Or something else?
And should I remove/change a file that is on my server now, or will this one (inside my rapid weaver project) overwrite what is on the server?
Thank you in advance
Natasha