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

The code is organized in the following directory structure:


Note that /frontend and /backend are at the same level.

I have setup a virtual host that makes points to /frontend/index.php. Is it possible to make points to /backend/index.php, without setting up another virtual host (e.g.,

share|improve this question
up vote 4 down vote accepted

Try the Alias and ScriptAlias tags.

share|improve this answer
RewriteEngine On
RewriteRule ^/admin/$ /backend/index.php [QSA]
share|improve this answer
Seems that your solution doesn't work, because points to /frontend, with your RewriteRule, Apache will try to look for /frontend/backend/index.php which doesn't exist. – powerboy May 30 '11 at 2:58
Ahh OK I get it, I thought you'd rewritten / to /backend/. In that case, open your httpd.conf and put a line Alias /backend/ /full/path/to/backend/ – Smudge May 30 '11 at 13:01

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.