UK WEB HOSTING FORUM FOR DISCUSSION ON WEB HOSTING SERVICE AND SUPPORT
LINUX HOSTING WINDOWS HOSTING PACKAGES SHOPPING CART OSCOMMERCE ZEN CART AGORA
ECOMMERCE HOSTING ASP MSSQL FRONTPAGE HOSTING PHP MYSQL HOSTING DISCUSSION FORUM
CPANEL RESELLER HOSTING DEDICATED SERVER VPS HOSTING PLESK VIRTUOZZO
Quick Search
Your forum announcement here!

  UK Web Hosting | Dedicated Server Windows and Linux VPS Forum > Technical Support > VPS - Virtual Private Servers

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 14-05-2008, 20:02
Junior Member
 
Join Date: Apr 2008
Posts: 11
Default redirect all https calls to http

HI all,

EUKHOSTS are currently making a bit of a mess of an SSL order I placed and I am in desperate need of an emergency patch...

There are a number of links on various websites that call up links on https://
these links are of course now throwing up SSL errors in browsers... this did not used to be much of a problem but IE7 and FF3 refuse to show anything..

I have just discovered that my client accidently called all of their ebay images and ecommerce images via
Code:
https://www.blah.com/image.jpg
I know they should not have been but that does not help the fact that every shop image and every ebay product description is now showing no images!! and they are losing lots and lots of money..

so given that eukhosts have failed to install the SSL cert (which would solve all my problems in one go!!) i really really need to redirect all https calls to http..

so far I have tried the following on .htaccess files

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

and

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

all to no avail..

I tried asking the vps help desk via chat but no luck...

has anyone got a clue???

much appreciated.
Reply With Quote
  #2 (permalink)  
Old 14-05-2008, 20:08
Site's Avatar
Premium Member
 
Join Date: Jan 2008
Location: UK
Posts: 366
Post

Hi,

Try


RewriteEngine On
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^(.*)$ http://www.domain.tld/$1 [R]




Site
Reply With Quote
  #3 (permalink)  
Old 14-05-2008, 20:35
Junior Member
 
Join Date: Apr 2008
Posts: 11
Default

no luck

i have done tests to ensure that the rewrite module is working and all is well I just cant crack https > http
Reply With Quote
  #4 (permalink)  
Old 14-05-2008, 21:41
Junior Member
 
Join Date: Apr 2008
Posts: 11
Default

well good news on one front ..

my ssl cert it now installed WOOOOT

however, I am still very interested to know the answer to this problem...

cheers
Reply With Quote
  #5 (permalink)  
Old 15-05-2008, 22:51
jc8654's Avatar
Moderator
 
Join Date: May 2007
Location: Manchester, United Kingdom
Posts: 1,219
Send a message via MSN to jc8654
Default

I tried to redirect the otherway a while back and ended up giving up and rewriting my code. Wasn't ideal so I would also like to see if someone can come up with an answer to this...
__________________
Jonathan Crass
Joint Partner in Checker Design

North East Website design
UK based monitoring
Cheap UK Web Hosting

Save Jodrell Bank: www.savejodrellbank.org.uk

eUKhost Forum Moderator
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 16:23.

 

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by Web Hosting 3.1.0
Copyright © 2001-2008, eUKhost.com. All rights reserved.

 
Site Map

knowledgebase articles

popular blog categories