I am building a site for a client. For a reason unknown to me www.domain.com forwards to www.domain.com/directory/home.html. If i type www.domain.com/index.php it works correctly. I have checked .htaccess there was nothing there, so I set the index to index.php which works fine in every directory other than the root directory. I have root access and have checked the httpd.conf (did a search in VI for the document that I was being redirected to) and anything else I could think of. Where should I look next? The server is a VPS running CentOS 5.5 with multiple domains, has CPanel WHM 11 for root access and CPanel X installed for each domain.

  • Also, the client says he did not set up and redirection or forwarding on this domain. – Mike L. Jan 4 '11 at 16:24
  • Did you check DNS? – colealtdelete Jan 4 '11 at 18:16

It could be another index.* file (HTML) in the root dir with an HTTP Redirect directive.


If you're running Firefox, there's an extension called 'Live HTTP Headers' which will give you a window into what the server is telling your browser about URL resolution and redirection; I've used this before to catch weird mod_rewrite stuff, which would be my first suspect for the culprit behind your problem. There may be a stanza in httpd.conf which redirects to a relative path, which your vim search might not have caught. Good luck; I hope this helps.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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