redirect to https

All WYSIWYG Web Builder support issues that are not covered in the forums below.
Forum rules
PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901

MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
WWBman
 
 
Posts: 737
Joined: Fri Jan 08, 2010 6:10 pm

Re: redirect to https

Post by WWBman » Fri Aug 30, 2019 4:43 pm

FWIW, my .htaccess file is in the public_html folder.

WWBman
 
 
Posts: 737
Joined: Fri Jan 08, 2010 6:10 pm

Re: redirect to https

Post by WWBman » Fri Aug 30, 2019 4:46 pm

I think you've missed the .com from the end of the url.

mrwillow
 
 
Posts: 176
Joined: Mon Jun 11, 2012 8:29 pm

Re: redirect to https

Post by mrwillow » Fri Aug 30, 2019 5:15 pm

This whole SSL situation has driven me crazy, particularly as it seems like money for old rope. Ok, yep - I then spotted the missing .com.

So, again - below is the revised code, placed in a .htaccess file, which is connected to my home page via File Publisher add-on, which uploads into the public_html folder within my main folder within the control panel. And the result is... yoursite.com still have it.

Help !

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

WWBman
 
 
Posts: 737
Joined: Fri Jan 08, 2010 6:10 pm

Re: redirect to https

Post by WWBman » Fri Aug 30, 2019 5:21 pm

Clear your cache and reload the browser.
I have loaded your site and the https://... version now works.

WWBman
 
 
Posts: 737
Joined: Fri Jan 08, 2010 6:10 pm

Re: redirect to https

Post by WWBman » Fri Aug 30, 2019 5:30 pm

Something is still wrong though.
The www and the http:// method should be automatically redirected to https:// but it isn’t.
Also I am now getting an error message “Too many redirects ...”
I am not an expert in .htaccess syntax so I can’t help there.
You could contact the host again unless anyone here can help.

mrwillow
 
 
Posts: 176
Joined: Mon Jun 11, 2012 8:29 pm

Re: redirect to https

Post by mrwillow » Fri Aug 30, 2019 5:51 pm

Ok, I think problem solved. The second code offered earlier works, with adapting to my specific URL. And the .htaccess file must sit in the main folder, but not within the public_html folder. Can you please test at your end and confirm, thank you.

mrwillow
 
 
Posts: 176
Joined: Mon Jun 11, 2012 8:29 pm

Re: redirect to https

Post by mrwillow » Fri Aug 30, 2019 5:51 pm

Scrap that... the site is not secure. This is driving me nuts.

WWBman
 
 
Posts: 737
Joined: Fri Jan 08, 2010 6:10 pm

Re: redirect to https

Post by WWBman » Fri Aug 30, 2019 6:00 pm

If you upload your site to the public_html folder then I would put the .htaccess file there (that's where mine is).
And delete (or remove the code) from the other version (in the root?).
The https:// works but it's just not redirecting www nor http://

mrwillow
 
 
Posts: 176
Joined: Mon Jun 11, 2012 8:29 pm

Re: redirect to https

Post by mrwillow » Fri Aug 30, 2019 6:45 pm

Do I use the first or second suggested code?

WWBman
 
 
Posts: 737
Joined: Fri Jan 08, 2010 6:10 pm

Re: redirect to https

Post by WWBman » Fri Aug 30, 2019 7:12 pm

mrwillow wrote:
Fri Aug 30, 2019 6:45 pm
Do I use the first or second suggested code?
Sorry, I do not know enough about the syntax to advise you (I don't want to guess).
I would contact your host.

User avatar
rogerl
 
 
Posts: 246
Joined: Tue May 03, 2016 8:24 am

Re: redirect to https

Post by rogerl » Fri Aug 30, 2019 10:51 pm

When I did mine I discovered the .htaccess file already existed and had other host related instructions in it. It was a hidden file, only visible via the control panel access, File Manager. I added the following code to the bottom of file then saved / Applied changes. Has worked ever since.

Code: Select all

RewriteEngine on

RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^ https://www.yourdomainname%{REQUEST_URI} [NE,L,R]
Just checking now and whatever you have done it seems to work fine here.
As a side comment your site took a while to load. Wondering if you need to optimize images or special effects in some way.
Interestingly in looking at the Team I found my twin in Ed Clee. Couldn't believe what i was seeing.

WWBman
 
 
Posts: 737
Joined: Fri Jan 08, 2010 6:10 pm

Re: redirect to https

Post by WWBman » Sat Aug 31, 2019 8:02 am

Yep, it's all being redirected correctly now.
What was the solution?

User avatar
rogerl
 
 
Posts: 246
Joined: Tue May 03, 2016 8:24 am

Re: redirect to https

Post by rogerl » Sat Aug 31, 2019 9:41 am

Perhaps time and a server refresh?

mrwillow
 
 
Posts: 176
Joined: Mon Jun 11, 2012 8:29 pm

Re: redirect to https

Post by mrwillow » Sat Aug 31, 2019 10:30 am

Hi all,

Thank you for your help. This was a headache (and for a site like mine an SSL certificate seems like money for old rope). Anyway, I have had a message from help at 123-Reg, and it looks like someone there rewrote the code. For future reference, it is the following. Thank you, D.

RewriteEngine On
RewriteCond %{HTTP_HOST} ^example.com [NC]
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.theavenuemotionpicturecompany.com/$1 [R=301,L]

Post Reply