Redirect from www.website.net to website.net

Hello,
I had a working website that I had published in printed material the address for using www.etc

Now the SSL certificates do not work for www sites (thanks for that).

OK, so I believe I have to set up a redirect in my .htaccess file. I already have some code in that file that forces https and that is shown below:

RewriteEngine On
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteCond %{HTTPS} off
RewriteCond %{HTTP:CF-Visitor} !{“scheme”:“https”}
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

Can someone please tell me what redirect code I need to add to redirect from www.thecornstore.is-great.net to thecornstore.is-great.net

I have looked online and found several pieces of code that I have put in my .htaccess file but none work, I still get error messages.

It would have been helpful if we had been sent a redirect FAQ with instructions when we were notified about the SSL changes. It recommended setting up a redirect but didn’t tell you how to do it. Having tried using what I can find online unsuccessfully I am coming to this forum in hope that someone can help.

Thank you

Redirection cannot remove the error message

7 Likes

Thanks for your response

I see, so my users will always see:
“This server couldn’t prove that it’s www.thecornstore.is-great.net ; its security certificate is from is-great.net . This may be caused by a misconfiguration or an attacker intercepting your connection”.
I have to say that I would rather the SSL changes hadn’t been made then, this does not seem like an improvement. Nobody is going to go past the warning, I certainly wouldn’t.
I wish all this had been FULLY explained when we were notified of the change and that we had been given a 1 year notice so that changes could be introduced into printed materials. I have spent/wasted a lot of money on advertising with the www. address. :frowning:

If you direct your users to just go to http://thecornstore.is-great.net without the www. on the begining they wont see the warning.

The warning is displayed by the browser before the www. version of the page loads, because that’s when it checks for the certificate.

Then when it loads, it finds the redirect, and actions it.

If that’s going to cause problems, a good solution would be to get a custom domain, and use cloudflare to force https.

4 Likes

Thank you, I will change all electronic instances of the website address to remove www. It is the printed versions in advertising material that I cant change.
I find it odd that when the SSL change was announced via email it came with a strong recommendation to set up a redirect, however it seems that a redirect isn’t possible without warning pages that nobody will go past.

The redirect is important to make sure your visitors are protected. Unfortunately the warning isn’t something that’s provided by infinity free or IFastNet. Its something that your browser does itself.

3 Likes

Just a side note, if you have a custom domain you can setup SSL on the www subdomain, it’s only restricted on free subdomains due to how SSL certificates work.

6 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.