Forum Moderators: phranque

Message Too Old, No Replies

AliasMatch not working ... why?

I am trying to move from mod_rewrite to mod_alias but it is not working :-(

         

Bean

5:24 pm on Mar 15, 2004 (gmt 0)

10+ Year Member



Hallo,

after some reading I see that I could do the same job I am doing with mod_rewrite using AliasMatch.

Alias are working on my Apache 2.0 server, but when I try to use AliasMatch the url is not "filtered".

my working mod_rewrite:

RewriteRule ^/film/([0-9A-Za-z-_]*)(/?)$
/path/www.domain.com/file.php?code=$1
RewriteRule ^/new(/?)$ /path/www.domain.com/new.php

my non working AliasMatch:

AliasMatch ^/film/([0-9A-Za-z-_]*)(/?)$
/path/www.domain.com/file.php?code=$1 <-- not working
AliasMatch ^/new(/?)$ /path/www.domain.com/new.php <- This is working

Do you see something wrong in my syntax?
It is very strange that it is working on the "heavy" mod_rewrite and not on mod_alias.

Anybody could help?

Thanks

closed

3:36 am on Mar 17, 2004 (gmt 0)

10+ Year Member



Welcome to WebmasterWorld, Bean!

I would have changed this:

0-9A-Za-z-_

to this:

0-9A-Za-z_-

but if you got it working in mod_rewrite, that's probably not the problem. Maybe AliasMatch doesn't work well with query strings?