Support

Admin Tools

#20104 Proper redirect from https to http domain.

Posted in ‘Admin Tools for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
n/a
PHP version
n/a
Admin Tools version
n/a

Latest post by nicholas on Tuesday, 20 May 2014 01:45 CDT

user79680
 Hello,

I have looked in SEO and Link Tools, URL Redirection and .htaccess Maker.

I am trying to show search engines to not index my https:// site. I only want my http://www.sitename.com indexed.

As it is now it redirects but not properly and they have everything indexed.

https://sitename.com
https://www.sitename.com
http://sitename.com
http://www.sitename.com

All of them are indexed. When I click them they do redirect to the proper http://www.sitename.com URL but its not a proper redirect for google to nit index the incorrect domain.

Thanks

nicholas
Akeeba Staff
Manager
If you do a redirect from HTTPS to HTTP nobody (search engines or visitors) will be able to access the HTTPS site, which makes paying for having an SSL certificate rather moot. In this case all you need is to disable HTTPS on your site (Force SSL -> None in Global Configuration) and set up the non-www to www redirection in .htaccess Maker.

IMHO it would be FAR better to go the entirely opposite way: set Force SSL to Both in Joomla's Global Configuration and set up the non-www to www redirection in .htaccess Maker. Moreover enable the HSTS Header option in .htaccess Maker to force all browsers to use the HTTPS version of your site. This way search engines will only index the HTTPS version of the site. It absolutely makes no sense whatsoever to not do that. HTTPS adds a measly 1% to your server load (about 0.03 seconds increase in page load time – one fourth of the time it takes you to blink really fast) and vastly increases the security of your visitors' data.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

user79680


IMHO it would be FAR better to go the entirely opposite way: set Force SSL to Both in Joomla's Global Configuration and set up the non-www to www redirection in .htaccess Maker. Moreover enable the HSTS Header option in .htaccess Maker to force all browsers to use the HTTPS version of your site. This way search engines will only index the HTTPS version of the site. It absolutely makes no sense whatsoever to not do that. HTTPS adds a measly 1% to your server load (about 0.03 seconds increase in page load time – one fourth of the time it takes you to blink really fast) and vastly increases the security of your visitors' data.




When I do this I get a redirect loop and my whole site goes down.

My domain is http://www.boattreasure.com/ you can see what I'm talking about.

For some reason the admin area is not affected by the redirect loop.

Thanks

nicholas
Akeeba Staff
Manager
Take a look at your configuration.php file, in the $live_site variable. Maybe you have set the http:// URL in there?

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

user79680
Hello,

It's not in there. It's blank. I will send you that file also on the private ticket.

Thanks again

user79680
I added login info to the other thread if you need it. I am going to not be around a computer for the next 15 hours and I would like to get the site back up and running,

Thanks

nicholas
Akeeba Staff
Manager
Closing this thread. We'll continue on the private ticket.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!