My SellerDeck Account | Newsletter | Free Trial

Community and Knowledge Base

  #1  
Old 11-Nov-2017, 02:50 PM
mythandmagic mythandmagic is offline
Registered User
Join Date: Aug 2006
Full Name: Kez
Posts: 312
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
  #2  
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: 115
Thanks: 26
Thanked 20 Times in 14 Posts
Hi, I posted mine on this thread #2 as I also changed the robots file:

http://community.sellerdeck.com/showthread.php?t=57393
__________________
Many Thanks
Lee
www.mdnsupplies.co.uk
www.hookandloopfasteners.co.uk
Reply With Quote
Reply


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 02:47 AM.


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