httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "thomas Armstrong" <tarmstr...@gmail.com>
Subject [users@httpd] Trying to create a RewriteRule with a ScriptAlias
Date Thu, 01 Mar 2007 10:47:07 GMT
Hi.

Using Apache 2.0.59, I want to create a new RewriteRule outside the
DocumentRoot and modified my 'httpd.conf':
--------------
<VirtualHost mydomain>
        DocumentRoot /home/project/web
        ServerName mydomain
	ScriptAlias /foo/ /home/project/modules/foo/web
	<Directory "/home/project/modules/">
	   AddHandler application/x-httpd-php .php
	   RewriteEngine on
	   RewriteRule /foo/show/(.*) /bloggersnet/show.php?id=$1 [L,QSA]
	</Directory>
	<Directory "/home/project/web">
	</Directory
</VirtualHost>
---------------

But when accessing 'http://mydomain/foo/show/5' I get a 404 error
message ('http://mydomain/foo/show.php?id=5' works ok).

What am I doing wrong? Thank you very much

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message