Website automatisch met https openen.

Dit forum is bedoeld voor vragen met betrekking tot WYSIWYG Web Builder.
Post Reply
User avatar
jvmiert
 
 
Posts: 7
Joined: Thu Jan 14, 2010 9:11 am
Location: Hoeven
Contact:

Website automatisch met https openen.

Post by jvmiert »

Hoe kan ik mijn website automatisch met https laten openen?
User avatar
BaconFries
 
 
Posts: 5371
Joined: Thu Aug 16, 2007 7:32 pm

Re: Website automatisch met https openen.

Post by BaconFries »

Have you purchased a SSL certificate first? If so then to use https you will also need to setup a 301 redirect using .htaccess
If you haven't already purchased then you can contact your host as they may be able to provide this and assist with the .htaccess as well.
User avatar
jvmiert
 
 
Posts: 7
Joined: Thu Jan 14, 2010 9:11 am
Location: Hoeven
Contact:

Re: Website automatisch met https openen.

Post by jvmiert »

Yes I have the SSL and certificate activated
User avatar
Pablo
 
Posts: 21720
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Website automatisch met https openen.

Post by Pablo »

Dit moet je op de server configureren via .htaccess
User avatar
BaconFries
 
 
Posts: 5371
Joined: Thu Aug 16, 2007 7:32 pm

Re: Website automatisch met https openen.

Post by BaconFries »

As previously mentioned you will also need to configure a .htaccess file on your host / server to do the redirect from http to https. You can try one of the following examples.

Code: Select all

RewriteEngine On
RewriteBase /
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} !^www\.yoursite\.com$ [NC]
RewriteRule ^(.*)$ https://www.yoursite.com/$1 [L,R=301]

Code: Select all

RewriteEngine On 
RewriteCond %{HTTP_HOST} ^example.com [NC]
RewriteCond %{SERVER_PORT} 80 
RewriteRule ^(.*)$ https://www.example.com/$1 [R=301,L]
Note whichever example you decide to use then it is required that you replace www\.yoursite\.com and example.com with your own url. If further help is needed on the implementation of this you should contact your host.
Post Reply