Bluehost.com Web Hosting $6.95

AliasMatch

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


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-09-2006
vivi74@rocketmail.com
 
Posts: n/a
Default AliasMatch

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

  #2 (permalink)  
Old 02-12-2006
Robert Ionescu
 
Posts: n/a
Default Re: AliasMatch

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
  #3 (permalink)  
Old 02-13-2006
vivi74@rocketmail.com
 
Posts: n/a
Default Re: AliasMatch


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.

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 02:44 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0