Jump to content

redirect https://domain.com to https://www.domain.com


sinister1

Recommended Posts

Hello,

 

I need to redirect https://domain.com to https://www.domain.com

 

i've tried the options:

 

RewriteEngine on

RewriteCond %{HTTP_HOST} ^https://domain.com$ [NC]

RewriteRule ^(.*)$ https://www.domain.com/$1 [R=301,L]

 

RewriteEngine on

RewriteCond "%{SERVER_PORT}"      "^443$"

RewriteRule "^(.*)$"              "https://www.domain.com/$1" [R=301,L]

 

Is ther anyone who can help with this?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.