Hello!

I'm having problems figuring out why our htaccess redirect script suddenly stopped working. Nothing out of the ordinary was changed on the website.

We want http to https redirected only on the homepage and a secure application. Any clue as to why it just stopped working? Any help would be greatly appreciated!!

Domain: http://www.htfffcu.org
Loan App: http://www.htfffcu.org/loan-application-ssl.php

Here is our current htaccess script:

Code:
RewriteEngine on 

# Ensure Correct Host 
RewriteCond %{HTTP_HOST} ^htfffcu\.org$
RewriteRule ^(.*)$ http://www.htfffcu.org/$1 [R=301,L]

# Switch back to HTTP 
RewriteCond %{HTTPS} on
RewriteCond %{REQUEST_FILENAME} (.*)\.php$
RewriteCond %{REQUEST_FILENAME} !index\.php$
RewriteCond %{REQUEST_FILENAME} !loan-application-ssl\.php$
RewriteRule ^(.*)$ http://www.htfffcu.org/$1 [R=301,L]

# Home Page Redirect to HTTPS
RewriteCond %{HTTPS} off
RewriteCond %{REQUEST_FILENAME} index.php
RewriteRule .* https://www.htfffcu.org/index.php  [R,L]

# SSL Exception on Loan Application page 
RewriteCond %{HTTPS} off
RewriteCond %{REQUEST_FILENAME} loan-application-ssl.php
RewriteRule .* https://www.htfffcu.org/loan-application-ssl.php  [R,L]

RewriteCond %{REQUEST_URI} /loan_center/
RewriteRule ^(.*)$ http://www.htfffcu.org/$1 [L]