Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 16th May 2012, 03:32 PM   #1
zen master seo
War Room Member
 
scott g's Avatar
 
Join Date: 2009
Location: saint louis
Posts: 1,166
Thanks: 213
Thanked 370 Times in 241 Posts
Default
.Htaccess :: HTTPS to HTTP :: Redirect Entire Site ? .htaccess 301 redirect HTTPS to HTTP
Share on: 
fb share twitter share gplus share more share

<<<...>>> I wasn't sure which subforum to post this question in so I did both... Not to spam but b/c I need some quick help! Sorry & Thanks

I've been doing searches for the answer to this question and I keep finding the answer.. To redirect only a portion of a site... Not what I want. I want to redirect the ENTIRE website!

If (for some reason) the user starts out with HTTPS and types in the rest of my websites URL I get a "Secure Connection Fail" or another error.

Ex. https://lawsuitinformation.org --->
automatically redirect to http://lawsuitinformation.org
((Secure Connection Failed - An error occurred during a connection to lawsuitinformation.org. (Error code: ssl_error_rx_record_too_long)))

Ex. https://www.careydanis.com ---> automatically redirect to http://www.careydanis.com
((Unable to connect - Firefox can't establish a connection to the server at Carey Danis & Lowe | Attorneys At Law.))

Can anyone help me out here?!

Code:
RewriteCond %{HTTPS} on
RewriteCond %{REQUEST_URI} !^(/checkout)
RewriteRule ^(.*)$ http://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]



NO "(/checkout)" ---> WHOLE site/domain!

I'm sure it's something real stupid and easy... I'm the moron for multitasking to many damn things! This forum has neen a GOD SEND so THANK YOU IN ADVANCE!

CHEERS!

scott g
"Whatever the mind can conceive and believe, the mind can achieve."

scott g is offline  
Unread 16th May 2012, 03:46 PM   #2
Advanced Warrior
War Room Member
 
OldLodgeSkins's Avatar
 
Join Date: 2012
Location: South of Paris, France
Posts: 581
Thanks: 72
Thanked 165 Times in 128 Posts
Default
Re: .Htaccess :: HTTPS to HTTP :: Redirect Entire Site ? .htaccess 301 redirect HTTPS to HTTP
Share on: 
fb share twitter share gplus share more share

Hi,

Here's how I used to do a 301 from an old domain to a new one, it may help you sort your problem out although this is a slightly different case:

Code:
RewriteCond %{HTTP_HOST} ^hasta-luego.net [NC]
RewriteRule ^(.*)$ http://www.site-professionnel-discount.fr/$1 [L,R=301]
Seb.

Do you use Facebook ? Then you can make money just by inviting people to a Facebook group ! It's called the Instant Income System. How cool is that?
OldLodgeSkins is offline  
Closed Thread


Bookmarks

Tags
301, entire, htaccess, http, https, redirect, site


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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 06:19 PM.