Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

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

down vote favorite share [fb] share [tw] share [in]

My site is built in PHP.

I need to upload a file to the root directory, to verify ownership of the domain.

I put the file in the first window I see when I log in over ftp, but the file doesn't show up at the relevant url.

Where do I place a file so that it's in the root directory?

share|improve this question
up vote 1 down vote accepted

This will vary since webservers can be setup in different ways. But it should be a directory named one of the following:

  • www
  • htdocs
  • public_html
  • wwwroot
share|improve this answer
thanks john, for that – Richard Sep 10 '11 at 16:33

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.