![]() ![]() |
| scott g |
May 16 2012, 01:29 PM
Post
#1
|
|
Member ![]() ![]() ![]() Group: Members Posts: 32 Joined: 8-November 10 From: StL, MO Member No.: 13,098 |
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 www.careydanis.com.)) 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! Anyone... Anyone...? Everytime I get stuck with something stupid someone on this forum knocks my simple problem out of park! So THANK YOU in advance -------------------- Scott G.
"Whatever the mind can conceive and believe, the mind can achieve." *avandia lawsuit paxil birth defects lawsuit zoloft birth defects lawsuit lexapro birth defects lawsuit |
| Darin McGrew |
May 16 2012, 04:54 PM
Post
#2
|
|
WDG Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Root Admin Posts: 7,852 Joined: 4-August 06 From: Mountain View, CA Member No.: 3 |
If you're using Apache, then the "Resource Moved to Another Server" example here may help:
http://httpd.apache.org/docs/2.4/rewrite/r...ml#movehomedirs -------------------- Darin McGrew
WDG Member since 1998 |
![]() ![]() |
|
Lo-Fi Version | Time is now: 21st May 2013 - 03:22 AM |