Search Options
close
Search the following clips:
All Clips
Everyone's Clips
My Guides
Sign Up
Install
Learn More
Login
Http-https transitions and relative URLs
ylodi
follow
0
10-18-2007 9:10 AM
338 views
tags:
web
,
tips
Add a Comment
Login
to Comment. Not a member yet?
Sign up
Today's Top Clips
Examples of Excellent Animal Photography Shots
Faithful Dog Rides and Walks Beside Boy's Casket.
The Decade in News Photographs [50 PHOTOS]
Killer Tripped on Baggy Pants, Plunged to Death after Slaying Three
Blind Mother regains her sight and sees youngest daughter for the first time
A Christmas Orange
"Was it good for you?" "Are you kidding?"
High School Quadruplets Get Accepted into Yale [Photos of the Fantastic Four]
Political Lie of the Year
The Birds nest turns to ice
visit the
Top Clips page
View the Top Clips from
October 18, 2007
Embed This Clip In Your Site...
<div style="margin: 12px 0px; font-family: arial; color: #333333; background: #ffffff; border: solid 4px #e5e5e5; width: 100%; clear: left;"><div class="CM_CTB_Content_Wrap" style="margin: 0px; padding: 0px;background-color: #ffffff;"><div style="border-bottom: solid 1px #dcdcdc; white-space: nowrap; margin-bottom: 8px; background-color: #eeeeee ;background-image: url(http://clipmarks.com/images/source-bg.gif); background-repeat: repeat-x; height: 24px; line-height: 24px; vertical-align: middle; padding-bottom: 4px; color: #666666; font-size: 10px;" ><a href="http://clipmarks.com/clip-to-blog/" title="see clips that are hot right now"><img src="http://content.clipmarks.com/blog_embed/e69bdb12-ff53-41b1-887b-a732927ed8aa/99DEB66D-C325-46DD-A3B0-C45D556C980A/" alt="" width="19" height="19" border="0" style="vertical-align: middle; margin: 0px 4px; display: inline; border: none; float:none;" /></a>clipped from <a title="http://www.nedbatchelder.com/blog/200710.html" href="http://www.nedbatchelder.com/blog/200710.html" style="font-size: 11px;">www.nedbatchelder.com</a></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://www.nedbatchelder.com/blog/200710.html"><DIV class="head"><H3 class="title" id="h_Http-https_transitions_and_relative_URLs"><A title="Link to this post" rel="bookmark" class="s" href="http://www.nedbatchelder.com/blog/200710.html#e20071017T215538">Http-https transitions and relative URLs</A></H3><P class="date">Wednesday 17 October 2007</P></DIV></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://www.nedbatchelder.com/blog/200710.html"><P>When building a web site with HTTPS pages, one of the annoying tasks is to ensure that those pages make no references to HTTP resources. If they do, then Internet Explorer will pop up alarming messages about mixing secure and insecure content, and do you want to display the insecure content. This confuses users and generally discourages them from continuing to use your site. </P></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://www.nedbatchelder.com/blog/200710.html"><P>If this reference appears in an HTTPS page, the mixed content warning will appear. How to craft a reference that works for both? The answer is again relative URLs, but using a more obscure syntax: </P></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://www.nedbatchelder.com/blog/200710.html"><BLOCKQUOTE class="code"><TT><SPAN class="h_tag"><img</SPAN><SPAN class="h_other"> </SPAN><SPAN class="h_attribute">src</SPAN><SPAN class="h_other">=</SPAN><SPAN class="h_singlestring">'//fast.cdn.net/pix/smiley.jpg'</SPAN><SPAN class="h_other"> </SPAN><SPAN class="h_tagend">/></SPAN> </TT></BLOCKQUOTE></blockquote></div><div style="margin: 0px 6px 6px 4px;"><table style="font-size: 11px;border-spacing: 0px;padding: 0px;" cellpadding="0" cellspacing="0" width="100%"><tr><td style="background:transparent;border-width:0px;padding:0px;"> </td><td align="right" style="background:transparent;border-width:0px;padding:0px;width:107px" width="107"><a href="http://clipmarks.com/share/99DEB66D-C325-46DD-A3B0-C45D556C980A/blog/" title="blog or email this clip"><img src="http://content7.clipmarks.com/images/c2b-foot.png" border="0" alt="blog it" width="107" height="17" style="border-width:0px;padding:0px;margin:0px;" /></a></td></tr></table></div></div>
New from the makers of Clipmarks:
Amplify.com - Don't just share the news...Amplify it!
Clipmarks
Home
New Clips
Top Clips
Dashboard
Popular Topics
News
Life
Science
Technology
Entertainment
Get Started
Sign Up
Install Clipping Tool
How Clipping Works
Clip-to-Blog™
ClipSearch
Tools and Resources
FAQ
ClipWeek
Top Clippers
Top Tags
Site Map
About Clipmarks
About Us
Contact
Copyright
Privacy
EULA
OK