homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Gold Sponsor 2015!
Home / Forums Index / WebmasterWorld / New To Web Development
Forum Library, Charter, Moderators: brotherhood of lan & mack

New To Web Development Forum

CSS and image Issue under SSL
since the ssl certificates was install start having problem

Msg#: 4395852 posted 4:16 am on Dec 9, 2011 (gmt 0)

HI all,

Need some help, i was working on a web site, adding paypal button, everything went very well, until i install SSL certificate for the domain.

the web site is install on red hat, trougth WHM. I only have access to Cpanel.

Since i have install the SSL certificate with the host manager, start having problem, first the http wasn't forwarding to HTTPS.

then i add the following in htaccess:

*** remove this first ****
RewriteCond %{HTTP_REFERER} !^http://mydomain.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://mydomain.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.mydomain.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.mydomain.com$ [NC]
RewriteCond %{HTTP_REFERER} !^https://mydomain.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^https://mydomain.com$ [NC]
RewriteCond %{HTTP_REFERER} !^https://www.mydomain.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^https://www.mydomain.com$ [NC]

*** then add this ***
RewriteCond %{HTTP_HOST} ^www.mydomain.com$ [OR]
RewriteCond %{HTTP_HOST} ^(www.)?mydomain.com$
RewriteRule ^(.*)$ https://www.mydomain.com/$1 [R=301]

then the image stop loading and the jscript stop working
i then make some search and try out some few thing removed them since it wasn't working

start changing the path for the image, try to put

<h1 id="title"><a href="index.html"><img src="http://mydomain.com/images/logo/logo3.png"/></a></h1>

<h1 id="title"><a href="index.html"><img src="//images/logo/logo3.png"/></a></h1>

<h1 id="title"><a href="index.html"><img src="/home/images/logo/logo3.png"/></a></h1>

instead of

<h1 id="title"><a href="index.html"><img src="images/logo/logo3.png"/></a></h1>

get no change image not changing

i've try to disable hot link protection

then it came worst the CSS jsscrit and the image came in problem.

please help very urgent



WebmasterWorld Administrator mack us a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

Msg#: 4395852 posted 5:08 pm on Dec 10, 2011 (gmt 0)

When you add the paypal button to the site, is it still hosted on a paypal server. THis might be causing some of the problems, because some elements of the page are not covered by your ssl cert. Because it is calling items from a different domain this can and usually does cause the browser to display an error "some items on this page are not secure. do you want to display the non secure items"


Global Options:
 top home search open messages active posts  

Home / Forums Index / WebmasterWorld / New To Web Development
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved