Hi all, I've just got some software for hosting my own web sites, which works and comes with ssl (https://)status. I have to upload my sites as html. but to get the https:// i havew to add a .htaccess. where would i add that??????
TIA
Dave
.htaccess
Forum rules
IMPORTANT NOTE!!
DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.
PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901
MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
IMPORTANT NOTE!!
DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.
PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901
MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
Re: .htaccess
try to use thisdavehappen wrote: Sun May 23, 2021 5:01 am Hi all, I've just got some software for hosting my own web sites, which works and comes with ssl (https://)status. I have to upload my sites as html. but to get the https:// i havew to add a .htaccess. where would i add that??????
TIA
Dave
# Redirect HTTP to HTTPS
RewriteCond %{HTTP:X-Forwarded-Proto} =https
RewriteRule ^(.*)$ http://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
- davehappen
-
- Posts: 239
- Joined: Mon Apr 06, 2020 5:20 am
Re: .htaccess
I have the script but am unsure where to insert it.
(head, body, tag, end)??????
(head, body, tag, end)??????
Re: .htaccess
no, you should set this code in .htaccessdavehappen wrote: Sun May 23, 2021 5:14 am I have the script but am unsure where to insert it.
(head, body, tag, end)??????
.htaccess located in your Hosting service. (cpanel - direct admin)
- BaconFries
-
- Posts: 5978
- Joined: Thu Aug 16, 2007 7:32 pm
Re: .htaccess
The .htacces file code does not get inserted in the page html. You will need to either create it locally with the likes of Notepad++ or just Notepad and then upload to your server. You can also create on the server itself to which your host should assist you with this. Note there is no file extension associated with it it is just .htacces nothing else.
To create locally open Notepad and add the code provided now select File name -> rename to .htaccess Save As type->
then choose "All Files" as the type - this will then create the .htaccess file for you. You can now upload to your server.
Please note this is unrelated to the program and its use. Also to be able to use you should check that your host supports Apache otherwise it will not work.

To create locally open Notepad and add the code provided now select File name -> rename to .htaccess Save As type->
then choose "All Files" as the type - this will then create the .htaccess file for you. You can now upload to your server.
Please note this is unrelated to the program and its use. Also to be able to use you should check that your host supports Apache otherwise it will not work.

- davehappen
-
- Posts: 239
- Joined: Mon Apr 06, 2020 5:20 am
Re: .htaccess
cheers bacon, il'll try it and let you know if it works
- davehappen
-
- Posts: 239
- Joined: Mon Apr 06, 2020 5:20 am
Re: .htaccess
hi bacon , yes, just uploaded to site, works a treat, many thanks to all.
- BaconFries
-
- Posts: 5978
- Joined: Thu Aug 16, 2007 7:32 pm
Re: .htaccess
Glad to have helped..credit to wb_user as well for his input.