httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aman Raheja <arah...@techquotes.com>
Subject Re: [users@httpd] Apache & mod_rewrite
Date Tue, 31 May 2005 17:46:54 GMT
Without mod_rewrite:

ScriptAlias <abs-path>/perl/ /shop/
<Directory <abs-path>/perl/>
    DirectoryIndex shop.pl
</Directory>

So when someone hits the http://www.test.com/shop/, they will actually 
access perl/shop.pl - wherever it is on the filesystem

With mod_rewrite, once you rewrite the /shop/ to /perl/shop.pl, that's 
what the browser will show, since rewrite does pattern match and 
substitution.
HTH
Aman Raheja
http://www.techquotes.com

Oliver Kirchel wrote:

>Hi,
>I have a problem with mod_rewrite.
>
>I want to type http://www.test.com/shop/ and the URL should go to
>http://www.test.com/perl/shop.pl , but in the browser you should only
>see the first URL http://www.test.com/shop/ .
>
>How can I do this ?
>  
>


---------------------------------------------------------------------
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