Welcome to WebmasterWorld Guest from 23.20.241.155

Forum Moderators: brotherhood of lan & mack

Message Too Old, No Replies

CSS and image Issue under SSL

since the ssl certificates was install start having problem

     
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 ^(.*)$ [mydomain.com...] [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
5:08 pm on Dec 10, 2011 (gmt 0)

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



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"

Mack.
 

Featured Threads

Hot Threads This Week

Hot Threads This Month