Timed Redirect Problem

I have set the Timed Redirect to 1 second to redirect from my
http URL to an https URL. It successfully redirects but I am having problems with it continually refreshing the screen. How can I prevent this from happening?

Clark


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Does the HTTPS redirect send the user to the very same page, just at
a different port? If so, then there’s no way for the page to know it
isn’t at the HTTPS page. You would need to have a separate folder
with your secure content, and make sure that the redirect sent the
visitor to a completely different page – one that did not include
the meta refresh code.

Another, much cleaner way to do this is with an Apache rewrite rule.
There, you can determine if the page is being accessed securely or
not, and redirect to the proper port. This will only fail once, as
after the redirect, the page will be accessed securely.

Put the following in an .htaccess file in the same folder as your
secure content:

RewriteEngine on
RewriteCond %{SERVER_PORT} =80
RewriteRule ^(.*) https://%{SERVER_NAME}%{REQUEST_URI}

This will force ALL content in that folder to be accessed securely.

Walter

On Mar 22, 2008, at 10:58 AM, Clark Brown wrote:

I have set the Timed Redirect to 1 second to redirect from my
http URL to an https URL. It successfully redirects but I am having
problems with it continually refreshing the screen. How can I
prevent this from happening?

Clark


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options