Results 1 to 7 of 7
Thread: Redirect from https >> http
-
07-21-2006, 10:12 AM #1Junior Guru Wannabe
- Join Date
- Mar 2005
- Posts
- 32
Redirect from https >> http
Hi everyone
I need to permanently redirect a page form an https address to an http address.
I want to do this via a .htaccess file
I need to redirect the following...
https://subdomain.domain.co.uk/
to
http://www.domain.co.uk/
Can anyone help please?
Thanks!
-
07-21-2006, 02:28 PM #2Junior Guru Wannabe
- Join Date
- Feb 2003
- Location
- Media, PA
- Posts
- 91
try
Code:RewriteEngine On RewriteCond %{HTTPS} = on RewriteRule (.*) http://domain.co.uk$1 [R]
Devin Zuczek
Versus Technologies
-
07-21-2006, 03:08 PM #3Junior Guru Wannabe
- Join Date
- Mar 2005
- Posts
- 32
It didn't work Im afraid although there were no errors.
-
07-21-2006, 03:37 PM #4Junior Guru Wannabe
- Join Date
- Feb 2006
- Location
- New York, NY
- Posts
- 92
put this in your .htaccess of the directory:
Code:RewriteEngine On RewriteCond %{SERVER_PORT} !=443 RewriteRule ^ http://domain.com%{REQUEST_URI} [NS,R,L]
-
07-21-2006, 04:08 PM #5Junior Guru Wannabe
- Join Date
- Mar 2005
- Posts
- 32
That also didn't wotk Im afraid !
-
07-22-2006, 12:44 AM #6Junior Guru Wannabe
- Join Date
- Feb 2003
- Location
- Media, PA
- Posts
- 91
how about
Code:RewriteEngine On RewriteCond %{SERVER_PORT} =443 RewriteRule ^ http://domain.com%{REQUEST_URI} [NS,R,L]
Devin Zuczek
Versus Technologies
-
07-22-2006, 04:16 AM #7Web Hosting Master
- Join Date
- Aug 2005
- Location
- UK
- Posts
- 654
I do it the other way around HTTP querys get forwarded to HTTPS.. I just have a second vhost that manages the HTTP that as Redirect / https://domain.com/ in the vhost block of http.conf