My Sellerdeck Account | Free Trial

Sellerdeck Community & Knowledge Base

Old 11-Nov-2017, 02:50 PM
mythandmagic mythandmagic is offline
Registered User
Join Date: Aug 2006
Full Name: Kez
Posts: 313
Thanks: 9
Thanked 5 Times in 4 Posts
.htaccess quick question

I've changed my site to be full sll from today.

so I want all pages to direct to https
but I also want all the pages to point to the www version

Just checking the code below in the .htaccess will do what I want and have no issues, ie duplication

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]

also anything I may need to do website having done this?
Reply With Quote
Old 11-Nov-2017, 06:44 PM
MDN's Avatar
MDN MDN is offline
Registered User
Join Date: Jun 2010
Full Name: Lee Phillips
Posts: 117
Thanks: 29
Thanked 20 Times in 14 Posts
Hi, I posted mine on this thread #2 as I also changed the robots file:
Many Thanks
Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

All times are GMT. The time now is 07:10 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.