FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

Help needed with HTTPS/HTTP links

 


woundedhealer
I'm working on an e-store and I'm having a problem with my links in the secure area. My shared SLL certificate requires links to BE either be relative or begin HTTPS. When I'm viewing a page in the secure area and click on a relative link I get a page not found message and the url in the address bar starts with https. This sort of makes sense to me because a page with a url starting with https is looking for a url like store/filename.php. I have no idea how I can break out of https.

My website is

Does anyone have any ideas on how to resolve this. I have contacted my SLL provider but I'm still waiting for answer.http://www.celticshaman.co.uk/store/
LukeakaDanish
How about opening unsecure links in a popup window/tab?

That way you will also show users that they are outside your page when they click the link AND your store will stay open so they can get back to it easily.

Just my $0.02
woundedhealer
Quote:
How about opening unsecure links in a popup window/tab?


That's one idea I didn't think of. I'm not too sure if this would work as the secure links would have to open in a popup window. I can give it a go and see if it will be ok.

At the moment the only other option is to have every link and image with https url but I really don't want to do that as it will make pages so slow to load.
sonam
Maybe is better solution then popup (users dont't like it, and most browser block popuss automaticaly) to use iframe for menu. But in that case links inside iframe must have target _top.

The third solution is put your https pages in iframe. In that case the links in iframe will change content of iframe, the links of page will change page content, and what is the best users will not see secure layer if is not looking in your code.

BTW, in IE7 the some content is drop down below of right menu (e.g. gemstone).

Sonam
woundedhealer
Code:
BTW, in IE7 the some content is drop down below of right menu (e.g. gemstone).


It works ok in firefox and spent ages trying to get it right in IE7, but as the content is only temporary I decided to leave it. It's going to be changed as soon as I get this https problem sorted.

It's been years since I used iframes so that option hadn't crossed my mind. I normally use php include, which of course, won't help in this case. I'm thinking I'll need to have a different default header and default footer for the secure files. The layout is 3 div columns so I can have the iframes in the center column. I'm going to have to refresh my memory regarding iframes Think

I agree with you regarding popups, it just shows the level of my desperation that I should even consider them.
LukeakaDanish
Here's another solution i thought of:

When you need to leave https, use a redirect url...

I.e. have redirect.php?url=foo redirect the user with http headers to the intended http target.

That would perhaps be the most elegant way to do it, as both iframes and popups have a disadvantage, i.e. iframes=bad for seo and dynamic layout, popups=irritating for some users.
woundedhealer
Quote:
When you need to leave https, use a redirect url...

I.e. have redirect.php?url=foo redirect the user with http headers to the intended http target.


That's a brilliant idea. I have a brilliant book on php so I can refresh my memory on http headers.
woundedhealer
Quote:
BTW, in IE7 the some content is drop down below of right menu (e.g. gemstone).


I've solved this with some of the files by adding
Code:
<!--[if IE 7]>
float: left;
<![endif]-->


to the center div. I've still got it happening to shopping basket and checkout files, so I'm hoping I just need to check my stylesheets to find out where else I need to add this code.
sonam
Conditional comment is good for solving problem but I am prefer clear code for IE7 and FF and conditional comment for IE6 if something looking wrong in my design.

Sonam
woundedhealer
I removed the conditional comment because it didn't solve all the problems. I've tried so many things, I think it was float: left; which did the trick in the end. I've almost got my layout how I want it, just a few more tweaks. I thought this day would never come. Very Happy
Reply to topic    Frihost Forum Index -> Scripting -> Html, CSS and Javascript

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.