Support

Admin Tools

#14237 Force https for entire site including sub-directories - redirect loop?

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 Monday, 03 December 2012 01:44 CST

peebee10

Mandatory information about my setup:

Have I read the related troubleshooter articles above before posting (which pages?)? yes
Have I searched the tickets before posting? Yes
Have I read the documentation before posting (which pages?)? Yes
Joomla! version: (unknown) 2.5.8
PHP version: (unknown) 5.3.14
MySQL version: (unknown)
Host: (optional, but it helps us help you)
Admin Tools version: 2.4.2 Pro

Hi Nicholas, I'm having a problem correctly configuring .htaccess to force site-wide https access.  The problem I'm experiencing relates to a non-Joomla sub-directory which can still be accessed via http if typed directly into the URL address bar.

The Joomla 2.5.8 site is located in the root.  I also have a non-Joomla related folder named /data which contains a 3rd party php application.  The data folder application is accessed via a menu link in the Joomla site.

Joomla! Global Configuration is set to Force SSL to Entire Site
All menus have Secure set to Ignore in their Metadata Options area
In .htaccess Maker, "Custom .htaccess rules at the top of the file" I've added:
RewriteCond %{HTTPS} ^off$ [NC,OR]
RewriteCond %{SERVER_PORT} !^443$
RewriteRule .* https://www.thesite.com/$1 [R=301,L]

All works perfectly for the Joomla site - everything is through https - no alternative.   The menu link to the /data folder application does redirect to https BUT I can manually change to http by simply editing the url itself.  The data application will then stay in http, rather than https?  

The Joomla site is successfully forced to https but the data folder application is not?  How do I keep the entire site through https - including the non-Joomla data folder?  

I tried adding a custom .htaccess rule for the /data folder but it resulted in a redirect loop.  

I also tried a custom htaccess file in the /data folder itself but again I received a redirect loop?

I also added the data folder to "Force HTTPS for these URLs (do not include the domain name)" in htaccess makere but that didn't work either.

Could you please detail the correct configuration for what I'm trying to achieve?  Thanks for your time.

Perry

nicholas
Akeeba Staff
Manager

Sorry, but I can neither provide support for a third party application or generic site setup consultancy through this support forum. Since this looks like an issue with the third party application, why don't you start by looking for a .htaccess in its directory and, if all else fails, contact its developer for support?

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!