Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6569677
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T14:39:42+00:00 2026-05-25T14:39:42+00:00

Our php-driven website has recently added ssl certificates to support the https protocol and

  • 0

Our php-driven website has recently added ssl certificates to support the https protocol and we are having problems with IE6 through IE8 although our pages do not have resources called through http.

I have read this post : http://paulirish.com/2010/the-protocol-relative-url/

So, basicaly, I need to replace all the

background: url('/images/whatever.gif');

With :

background: url('//www.mydomain.com/images/whatever.gif');

I’m not quite a fan of using my domain name across several hundred css files to start with, but suppose I do : what would be the best practice to do so for my development, test and staging environments which are all on different subdomains than the production site. I would need to use dynamic representations of the domain name in the css files, most probably driven from some sort of config file, but how ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T14:39:42+00:00Added an answer on May 25, 2026 at 2:39 pm

    You don’t have to add your hostname to use protocol-relative URLs. The form you’re already using is protocol-relative, because it doesn’t specify a protocol.

    Can you detail the problems you are having? Have you confirmed with a test that the URL with a domain name will solve your problem?

    PS: If you have hundreds of CSS files, you’ll probably be happier with a dynamic generation system anyway, but that’s a separate matter.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Recently and without any website code changes, a few of our dynamic PHP pages
Our PHP scripts create dynamic folders and files and we are having a permission
We're getting ready to translate our PHP website into various languages, and the gettext
Our website code is written in PHP. We have very little testing in regards
Our dev server was recently upgraded to PHP v5.2.13. With that upgrade we have
Currently, when we update our PHP code for our website, we have a script
We recently upgraded our PHP and apache versions on our server. Prior to this
Pair.net recently upgraded our PHP install and afterwards client started see HTML in email
I've got a database-driven website, written in php, which needs to create e-mails from
I'm currently importing all of our PHP websites into SVN repositories. Each site has

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.