homepage Welcome to WebmasterWorld Guest from 54.242.200.172
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Accredited PayPal World Seller

Home / Forums Index / WebmasterWorld / New To Web Development
Forum Library, Charter, Moderators: brotherhood of lan & mack

New To Web Development Forum

    
CSS not showing up on secure pages
RonSolo




msg:3399296
 6:26 pm on Jul 19, 2007 (gmt 0)

We're in the midst of development of our site. When browsing, everything looks fine. However, when we access our order page, which is a secure page (ie. https), the page does not have any of the styling applied from the CSS files. In fact, if I use "https", instead of "http", in the path for any of our pages, the same thing occurs.

How can I fix this?

Thanks,
Ron

 

Edouard_H




msg:3399301
 6:29 pm on Jul 19, 2007 (gmt 0)

Sounds like you are using the full URL for the stylesheet. If you change the call for the stylesheet from 'http://www.yourdomain.com/afolder/stylesheet.css' to '/afolder/stylesheet.css' it should clear that up.

RonSolo




msg:3399313
 6:46 pm on Jul 19, 2007 (gmt 0)

Actually, we're using relative links, not absolute links. It was working fine not too long ago and now suddenly we're having this problem of the CSS not being applied to secure pages.

Any other ideas?

All our files are in our "httpdocs" folder. Do we need to put anything in the "httpsdocs" folder?

Thanks,
Ron

RonSolo




msg:3399431
 8:46 pm on Jul 19, 2007 (gmt 0)

Okay. I discovered what the problem was. Apparently, I had added some code into our .htaccess file to prevent hotlinking of images and our css. And the code does not specify "https". So, that was the problem.

- Ron

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.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved