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

Say I have my website stored on I add a rule in .htaccess to rewrite the URL to

Is there any downside to storing the site in a subfolder and rewriting the URL like this? Or is this standard practice - Possibly having different iterations of the site in subfoldrs etc...


share|improve this question

There's no downside using this method but if you can use virtual host, it's more better if you plan to add more directory later.

share|improve this answer

There's a minor downside in that you have to enable Overrides for at least that directory. And possibly elsewhere in your directory tree. This may allow a little looser security than you expect (what if someone is an unexpected writer to your file tree) vs your config file security (which tend to have tighter security). It also means the various extra files must be stat()ed and the htaccess file read per request.

In >99% of the time, these side effects are infinitesimal and the convenience of the overrides is greater than the other concerns tho. I wouldn't see any issue doing this on my site.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .