.htaccess

All WYSIWYG Web Builder support issues that are not covered in the forums below.
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
Post Reply
User avatar
davehappen
 
 
Posts: 239
Joined: Mon Apr 06, 2020 5:20 am

.htaccess

Post by davehappen »

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
wb_user
 
 
Posts: 1062
Joined: Sun Jul 05, 2015 7:03 am

Re: .htaccess

Post by wb_user »

davehappen 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
try to use this
# Redirect HTTP to HTTPS
RewriteCond %{HTTP:X-Forwarded-Proto} =https
RewriteRule ^(.*)$ http://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
User avatar
davehappen
 
 
Posts: 239
Joined: Mon Apr 06, 2020 5:20 am

Re: .htaccess

Post by davehappen »

I have the script but am unsure where to insert it.
(head, body, tag, end)??????
wb_user
 
 
Posts: 1062
Joined: Sun Jul 05, 2015 7:03 am

Re: .htaccess

Post by wb_user »

davehappen wrote: Sun May 23, 2021 5:14 am I have the script but am unsure where to insert it.
(head, body, tag, end)??????
no, you should set this code in .htaccess
.htaccess located in your Hosting service. (cpanel - direct admin)
User avatar
BaconFries
 
 
Posts: 5978
Joined: Thu Aug 16, 2007 7:32 pm

Re: .htaccess

Post by BaconFries »

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.

Image
User avatar
davehappen
 
 
Posts: 239
Joined: Mon Apr 06, 2020 5:20 am

Re: .htaccess

Post by davehappen »

cheers bacon, il'll try it and let you know if it works
User avatar
davehappen
 
 
Posts: 239
Joined: Mon Apr 06, 2020 5:20 am

Re: .htaccess

Post by davehappen »

hi bacon , yes, just uploaded to site, works a treat, many thanks to all.
User avatar
BaconFries
 
 
Posts: 5978
Joined: Thu Aug 16, 2007 7:32 pm

Re: .htaccess

Post by BaconFries »

Glad to have helped..credit to wb_user as well for his input.
Post Reply