Super User is a question and answer site for computer enthusiasts and power users. 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

I expect this is a basic question but I'm not sure what to search for in order to get the answer...

I'm hosting a site using Apache 2.2 (on Mac OS X 10.6) and I use a Directory and an Alias directive in httpd.conf to serve a set of pages outside Apache's DocumentRoot. The URL looks like this to the user:


I have it set to automatically serve index.html if you don't specify a file so in fact that is serving:


On that index page I have links to other files in the same directory (e.g. about.html) in the filesystem. If I click one it loads the page fine. The thing I'm trying to figure out is why the URL in the browser's address bar doesn't change when I do that. In other words the address bar doesn't look like this:


Why is that? I assume this is some default that Apache uses? Can I set it so that it does show the actual file name in the address? At the moment it still shows:


which is annoying as when I refresh the page in my browser it serves me index.html again!

share|improve this question
up vote 2 down vote accepted

Sounds like this is not an Apache issue, but like your index.html is using HTML frames. So, to get rid of this behavior, you'll have to get rid of the frames.

Update, as this is your DNS provider adding those frames:

If you have a fixed public IP address, then any normal DNS provider allows you to map your domain to some specific IP address, instead of using some magical frameset. Your DNS provider seems to offer this as well.

share|improve this answer
Interesting. I haven't added frames myself but it looks like something did! It must have been apache or my domain name/ dns lookup provider? – Ben Jun 27 '10 at 13:02
@Ben, if you're indeed using some domain service that forwards requests for to your own computer, then sometimes/often that indeed uses a frameset for "forwarding". The outermost frameset is then served by computer registered at the nice domain name, while the inner frames then refer to some IP address or some to include the actual site content. – Arjan Jun 27 '10 at 14:35
Thanks Arjan, I bet that's it! I'll pursue that line and see if that's the case! If it I'd I'll be accepting your answer. Either way it was a good insight so I'm voting up! – Ben Jun 27 '10 at 15:02
@Ben, it seems you've got accepting and voting mixed up (but: you can undo both accepting and voting) :-) Which dynamic DNS service are you using? And what does Apache give you when accessing through http://localhost directly, without that third-party DNS service? – Arjan Jun 27 '10 at 15:37
Ok so it looks like I've accepted your answer I just can't vote it up (not enough rep!). I'll check when I get back on my machine. Cheers. – Ben Jun 27 '10 at 16:18

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.