title: Alias an URL in Apache in order to route requests on a certain URL through a PHP-script
body: <p>I am using Apache 2.2.6 with suPHP 0.6.2 and PHP 5.2.6 and I am trying to use an Alias in order to route all requests on a certain URL trough a PHP script. I want all requests to /test to go through index.php. In the Apache virtualhost config I have set up an Alias <code>Alias /test /index.php</code>. index.php is just a dummy script containing the following:</p>
  
  <pre><code>&lt;?php
  phpinfo();
  ?&gt;
  </code></pre>
  
  <p>Requesting <a href="http://localhost/index.php" rel="nofollow noreferrer">http://localhost/index.php</a> works and gives the expected output, however requesting <a href="http://localhost/test" rel="nofollow noreferrer">http://localhost/test</a> does not and gives me a 403 error, the error.log contains the following:</p>
  
  <pre><code>[Wed Jan 27 17:13:19 2010] [error] [client 127.0.0.1] client denied by server configuration: /index.php
  </code></pre>
  
  <p>What is wrong with my Alias?</p>
  
  <p><strong>Edit:</strong>
  I almost forgot to mention that rewriting /test to /index.php through mod_rewrite works as well, however I want to avoid mod_rewrite on my production server if possible.</p>