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