cancel
Showing results for 
Search instead for 
Did you mean: 
Go to solution
ExpressTaxi
Novice

redirecting www and non www to HTTPS

Hello Team,

I have 6 domains, all with SSL,

the problem is with two domains only:

www.schiphol-taxis.nl

www.express-taxi.nl

 

when I go to (express-taxi.nl) or (www.express-taxi.nl) it won't direct me to HTTPS.

I know the SSL is Signed correctly because when I type (https://express-taxi.nl) everything works, the issue here is (I believe) some kind of redirecting issue.

however with my other domains everything works fine (with & without www), and I compared the (.htaccess) files with all domains, I can't see any different.

 

Any ideas why this is happening?

 

1 REPLY
ExpressTaxi
Novice
Solution

Re: redirecting www and non www to HTTPS

I just added the following code to .htaccess, and it's working now.

 

# BEGIN HTTPS Redirection Plugin
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
</IfModule>
# END HTTPS Redirection Plugin