Long URL Redirect

Problems with the Linux version of XAMPP, questions, comments, and anything related.

Long URL Redirect

Postby amar_shaw » 27. December 2011 12:10

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
amar_shaw
 
Posts: 2
Joined: 27. December 2011 12:06
Operating System: Linux

Re: Long URL Redirect

Postby JonB » 29. December 2011 14:13

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)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: Long URL Redirect

Postby amar_shaw » 02. January 2012 09:00

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 :)
amar_shaw
 
Posts: 2
Joined: 27. December 2011 12:06
Operating System: Linux

Re: Long URL Redirect

Postby JonB » 02. January 2012 19:03

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)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 29 guests