httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <>
Subject Re: [users@httpd] AliasMatch problem
Date Thu, 02 Sep 2004 14:22:47 GMT
On Thu, 02 Sep 2004 16:15:10 +0200, Albert Vila <> 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]


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message