Go Back   CodingForums.com > :: Server side development > Apache configuration

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-21-2012, 07:24 PM   PM User | #1
HTFFFCU
New to the CF scene

 
Join Date: Jul 2011
Location: Houston, TX
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
HTFFFCU is an unknown quantity at this point
Exclamation http to https redirect stopped working

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]
HTFFFCU is offline   Reply With Quote
Reply

Bookmarks

Tags
http to https, redirect not working

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:51 PM.


Advertisement
Log in to turn off these ads.