Puli
Sep 11, 2012Nimbostratus
Match and split a URI
How can i match and split a URI,
like below, eg :
http:/abc.com/about/communityprocess/maintenance/JMF2.0/$
re-direct to
abc.com/landingpage/$1
For example
http:/abc.com/about/communityprocess/maintenance/JMF2.0/hello.html re-direct to abc.com/landingpage/hello.html
it does'nt have to be just the filename, it could a url
http:/abc.com/about/communityprocess/$ re-direct to abc.com/landingpage/$1
How can match , extract the second part of incomming url and attached to the re-direct ?
thanks,
Puli.