Page 1 of 1

Long URL Redirect

PostPosted: 27. December 2011 12:10
by amar_shaw
Hi,

Need to redirect long url. in apache.
http://example.int.mac.com/plateau/user/deeplink_redirect.jsp?linkId=ITEM_DETAILS&componentID=DL-CO-1&componentTypeID=Course%3A&revisionDate=1295183700000

to

http://example.int.mac.com/plateau/deeplink_redirect.jsp?linkId=ITEM_DETAILS&componentID=DL-EL-01&componentTypeID=E-Learing%3revisionDate=1295191380000


Can any one help me to redirect this url ?

Regards
Amar Shaw

Re: Long URL Redirect

PostPosted: 29. December 2011 14:13
by JonB
Hello:

Programmatic redirects (like mod_rewrite) are totally dependent on pattern-matching. To do what you require would neccesitate using a script that can hold tables/arrays to create the correspondences (that could also be built into a Directive, but it would be long & ugly).

Good Luck
8)

Re: Long URL Redirect

PostPosted: 02. January 2012 09:00
by amar_shaw
Hi JonB,

Thanks for your reply, is there any way to redirect this url, can you please give my an example, to redirect long and ugly url.

Waiting for your positive reply :)

Re: Long URL Redirect

PostPosted: 02. January 2012 19:03
by JonB
Apparently you did not understand my reply - you should read it carefully.

You can't make a redirect like you want other than by writing code, and that's not my job here (to write code for you or to teach you). I am here to fix problems related to XAMPP on Linux.

Good Luck

8)