Forum Moderators: phranque

Message Too Old, No Replies

Redirect https to http

want to redirect https requests to http

         

atul_iiit

2:11 pm on Nov 28, 2005 (gmt 0)

10+ Year Member



Hi Everybody,
I have Apache webserver listening on both https as well http

Now I want to redirect https requests to http & while redirecting I want to dispaly message that "https is going to replace by http so please change your favouites "

Basically redirect https to http & message screen for 5 seconds ( displaying custom message )

Any pointers?

jdMorgan

6:07 pm on Nov 29, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



To redirect from https to http, you could use something like:

RewriteCond %{SERVER_PORT} ^443$
RewriteRule (.*) http://www.example.com/$1 [R=301,L]

However, this is a pure redirect, and no message can be displayed.

If you want to display a message, then you'll need a script or SSI or PHP page that displays the message, gets the originally-requested URL, and does a meta-refresh to it after a few seconds.

Jim