How do I create an https site from a http site ?
Autor: Philip B.
Besucht 858,
Followers 1,
Geteilt 0
I have an SSL certificate option with my web hosting service
and it is my intention to use the .htaccess file to refer all traffic to an HTTPS version of my site.
My question is do I have to create a copy of my existing site and have an HTTP version and a HTTPS version ?
or will using the .htaccess file allow visitors to use my site as is securely with no amendements needed to the existing site ?
sorry if this is a bit simplistic but I am totally new to all of this.
TIA
Phil
Gepostet am
You do not need to create a copy of the existing site. You only have to enter https://yourdomain.com/ in the field 'URL of the website' under step "5 Export", selection "Export the website to the Internet". The project must then be rebuilt. To do this, hold down the Ctrl key and click on the preview button. Wait until the green progress bar has completely run through and then load the project completely, not just the changes. To be sure that everything old is removed, you can delete the web space beforehand.
To ensure that the secure page is always displayed, you should select the option 'Force SSL' (if your web host offers this option). If this is not possible, you need an .htaccess file in your web space. You can create this file with notepad.exe and enter the following lines:
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R= 301]
Then save the file and change the name to .htaccess with the Windows Explorer, whereby the dot must be in front of the file name. Copy this file into the root directory of the respective web space, i.e. where you also export the project with WebsiteX5.