This is a discussion on AliasMatch within the Apache Web Server forums, part of the Web Server and Related Forums category; Hello Everyone, I am runing in to an issue with AliasMatch directive, at this point am not even sure if ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hello Everyone,
I am runing in to an issue with AliasMatch directive, at this point am not even sure if i should be using AliasMatch or RedirectMatch. Also to make matters worse i cant use mod_rewrite or any Rewriting rules. Here is the issue i have a url https://test.com/a/login.jsp?group=mytest . i need to aliasmatch it to https://test.com/c/d.html i tried using AliasMatch "/a/login.jsp/?(.*)" "/c/d.html" but dont work to be more ambitious i tried using Alias instead of AliasMatch this Alias "/a/login.jsp?group=mytest" "/c/d.html" still invain Appreciate any help. Thanks |
|
|||
|
vivi74@rocketmail.com wrote:
> Also to make matters worse i cant use mod_rewrite Well, this is definitely a mod_rewrite issue... why don't you recompile apache with mod_rewrite? > i tried using AliasMatch "/a/login.jsp/?(.*)" "/c/d.html" but dont work The query string cannot be handled with mod_alias. So you'll get /c/d.html?group=mytest. You must use a full physical path and not a local URLpath on the right side. The directive should look like this: AliasMatch ^/a/login\.jsp$ "/var/www/htdocs/c/d.html" -- Robert |
|
|||
|
Robert Ionescu wrote: > vivi74@rocketmail.com wrote: > > Also to make matters worse i cant use mod_rewrite > > Well, this is definitely a mod_rewrite issue... why don't you recompile > apache with mod_rewrite? > > > i tried using AliasMatch "/a/login.jsp/?(.*)" "/c/d.html" but dont work > > The query string cannot be handled with mod_alias. So you'll get > /c/d.html?group=mytest. > You must use a full physical path and not a local URLpath on the right side. > > The directive should look like this: > AliasMatch ^/a/login\.jsp$ "/var/www/htdocs/c/d.html" > > -- > Robert Thank you Robert. That worked. |