Announcement

Collapse
No announcement yet.

.htaccess quick question

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new 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?
    Reverse Osmosis Water Filters

    #2
    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

    Comment

    Working...
    X