Support

Admin Tools

#28124 .htaccess maker redirects to https always

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 dlb on Tuesday, 25 July 2017 21:25 CDT

UglyEoin
Please look at the bottom of this page (under Support Policy Summary) for our support policy summary, containing important information regarding our working hours and our support policy. Thank you!

Hi there, I can't find anything on the site but maybe I am asking the question incorrectly. My site is http and does not contain an SSL certificate. For some reason when I try to use the .htaccess maker at the moment it redirects to https: and fails with a 404 error. Kind of annoying as I suspect it's not a 404. I tried adding a .htaccess rule forcing http but it doesn't seem to work.

RewriteCond %{HTTPS} on
RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]


The rest of the site works as expected. I tried adding in the live value in configuration but that didn't work either. Deleting the .htaccess file doesn't resolve it so I assume that is not the issue (and in any case I have added the above rule to the bottom of the file).

Do you have any idea what could be causing this? I think it is a server issue (names.co using cPanel). I've found their service particularly difficult so far but it is a client choice. This has possibly happened to me previously but that time I solved it with the above rule I believe. I wonder could this be caching somehow, or overly onerous security.

dlb
The usual way to change your site to https is in the Joomla! Global Configuration screen, on the Sever tab, the Force HTTPS field.

In .htaccess Maker, there are two fields involving https, both towards the bottom of the screen. The first is "HSTS Header (for HTTPS-only sites)" that should be No or "---" for http sites. The second is just below that, "Host name for HTTPS requests (without https://)" which should be set to the http URL if you're not using https.


Dale L. Brackin
Support Specialist


us.gifEnglish: native


Please keep in mind my timezone and cultural differences when reading my replies. Thank you!


????
My time zone is EST (UTC -5) (click here to see my current time in Philadelphia, PA)

UglyEoin
My global config says no SSL, I've checked with FTP too. The only page on the site that is redirecting to SSL is the .htaccess maker.

So I assume the .htaccess maker rules are no the issue or else other pages would be https too.

I've renamed the .htaccess and .htaccess.admintools files as well and that hasn't changed it so I'm pretty sure both of your ideas are wrong on this occasion.

UglyEoin
Ok, so I removed .htaccess and .htaccess.admin tools cleared browser cache and that did it.

Then I could change my .htaccess file. Browser was stuck for some reason.

I'll close this ticket hope that knowledge helps someone in the future.

also... my tickets go from oldest to newest. It would be preferable to go the other way round.

dlb
I'm glad you got it working!


Dale L. Brackin
Support Specialist


us.gifEnglish: native


Please keep in mind my timezone and cultural differences when reading my replies. Thank you!


????
My time zone is EST (UTC -5) (click here to see my current time in Philadelphia, PA)

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!