Forum Moderators: phranque

Message Too Old, No Replies

URL redirection

URL redirection

         

webkishore

7:21 pm on Feb 5, 2010 (gmt 0)

10+ Year Member



Hi,

I have a URL [sub.example.com...] and would like to redirect it to
http://example.com/sub/apps/results/param1:lhbgghg26gi0v

the value of param1 "lhbgghg26gi0v" is not constant.

Is this possible with mod_rewrite, if yes how?

Any help is much appreciated :-)

Thanks,
K

[edited by: jdMorgan at 3:01 am (utc) on Feb 6, 2010]
[edit reason] example.com [/edit]

g1smd

11:47 pm on Feb 5, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



It's a simple redirect using a single RewriteRule with [R=301,L] flags.

Do you want to preserve the parameter value in the redirect or strip it off?

webkishore

1:55 am on Feb 6, 2010 (gmt 0)

10+ Year Member



Thanks for the reply.

Yes I want to preserve the parameter value.