Forum Moderators: phranque

Message Too Old, No Replies

Global httpd.conf https to http redirection

         

simonvlc

5:23 am on Sep 22, 2007 (gmt 0)

10+ Year Member



Hi all ;).

Is that possible? I want to redirect all the SSL requests on one of my servers to the non ssl page (https to http).

Could this be done globally instead on per VirtualHost?

Thanks in advance, Simon.

jdMorgan

3:50 pm on Sep 22, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Should be possible, using RewriteCond to capture the hostname to back-reference for use in the substitution address of the RewriteRule:

[httpd.apache.org...]

RewriteRule
Syntax: RewriteRule Pattern Substitution
Default: None
Context: server config, virtual host, directory, .htaccess
...

Jim