Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Can secure and normal web pages be hosted in the same domain?

My sites has index.php account.php work.php

Right now all of them are accessible from http://

In future I wish only one of the pages "account.php" to be accessed from https://

Will that be possible? Or will all the pages be only accessible from https (because of the ssl certificate installed).

share|improve this question
You could probably get a little more specific instructions on where to start looking if you provided your OS and what web server you're running – Safado Oct 19 '12 at 19:18
-1 because anyone who has spent more than a few minutes on the Internet will have seen numerous examples of HTTP and HTTPS URLs from the same domains. – John Gardeniers Oct 19 '12 at 23:08

yes, you can choose what portion is indexed via the site map for ssl.

share|improve this answer

Yes, it's possible (and common) to configure a web server to serve HTTP and HTTPS traffic from the same directory. You'd need to specifically protect account.php from being accessed over normal HTTP, likely with a redirect.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.