Support

Admin Tools

#26551 Can't create https

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 on Friday, 16 December 2016 17:17 CST

iamalive
 Hi

I'm trying to make a site https but every time I do, the domain name is stripped out of the url and nothing works.

All I've been doing is adding a "/" in the htaccess field entititled "Force HTTPS for these URLs (do not include the domain name)"

and changing "HSTS Header (for HTTPS-only sites)" to "yes"

When I try to use the Joomla global configuration to force https on the site it comes back with the message that https is not available on the site, which is incorrect.

I tried it together with the hoster, by creating a dummy domain on the server and installing a basic joomla. No problems at all.

I'm stuck.

Any ideas?

Regards
David

nicholas
Akeeba Staff
Manager
All I've been doing is adding a "/" in the htaccess field entititled "Force HTTPS for these URLs (do not include the domain name)"


Do not do that. This is not what this feature is designed for. This feature was designed to force accessing specific URLs through HTTPS, but not the domain root, on an otherwise HTTP-only site. Think about an e-commerce site that runs on HTTP but the checkout needs to always be on HTTPS. This feature is NOT designed to make your site HTTPS-only.

The correct way to do what you are trying to accomplish is setting the Joomla Global Configuration "Force SSL" to "Entire site". Before doing that make sure that "Force HTTPS for these URLs (do not include the domain name)" is empty. After you confirm your site works fine under HTTPS go to the .htaccess Maker and enable the HSTS feature. This will tell browsers to never bother accessing your site under plain HTTP.

and changing "HSTS Header (for HTTPS-only sites)" to "yes"


Only do that AFTER making sure that you can access your site through HTTPS!

When I try to use the Joomla global configuration to force https on the site it comes back with the message that https is not available on the site, which is incorrect.


You made a mistake by prematurely enabling HSTS. Please clear the HSTS cache. Remove the "Force HTTPS for these URLs (do not include the domain name)" and HSTS settings from the .htaccess Maker and create a new .htaccess file. Try accessing your site over HTTPS. If this still fails, contact your host. If it works, see above about what you should do.

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!

iamalive
Hi Nicholas

Many thanks.

I followed your steps, but still had no luck.

Working with the hoster, we discovered that the Problem was Cloudflare which was interfering with the site as well. After deactivating that, we were able to force https and add a certificate.

Again, thanks for putting us on the right path.

Regards
David

nicholas
Akeeba Staff
Manager
You're welcome, David!

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!

System Task
system
This ticket has been automatically closed. All tickets which have been inactive for a long time are automatically closed. If you believe that this ticket was closed in error, please contact us.

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!