httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Albert Vila <...@imente.com>
Subject Re: [users@httpd] AliasMatch problem
Date Thu, 02 Sep 2004 14:45:19 GMT
Thanks a lot Joshua. That's great.

I've just needed to change the [PT] for [L].

Albert

Joshua Slive wrote:

>On Thu, 02 Sep 2004 16:15:10 +0200, Albert Vila <avp@imente.com> wrote:
>  
>
>>Hi all,
>>
>>    I'm trying to find a solution to my problem using AliasMatch.
>>
>>    I've got urls like /post/xxx where xxx is the post id. I want to
>>redirect all calls to /post/xxx to /cgi-bin/view_post.cgi?mode=view&id=xxx.
>>    I think I can do that using the RedirectMatch directive, but I don't
>>want to change my url, I want my url be the /post/xxx.
>>    
>>
>
>Yes, but you'll need to use mod_rewrite:
>
>RewriteEngine On
>RewriteRule ^/post/(.*) /cgi-bin/view_post.cgi?mod=view&id=$1 [PT]
>
>Joshua.
>
>---------------------------------------------------------------------
>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
>
>
>
>  
>

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