Hi,
I need to redirect existing site pages to new site pages based on query string value
e.g.
http://www.xyz.com/default.php?doc_id=242&test to http://www.xyz.com/mypage.aspx
I have following requirements:
1) need to consider only doc_id value, everything including "&" and text following it is optional. so that means
All below URL should redirect to single page that is : http://www.xyz.com/mypage.aspx
http://www.xyz.com/default.php?doc_id=242
http://www.xyz.com/default.php?doc_id=242&
http://www.xyz.com/default.php?doc_id=242&te
http://www.xyz.com/default.php?doc_id=242&test
2)
First requirement applies to all URLs additionally I need to do following:
I have list of doc_ids, say from 1 to 150 and based on doc_id value I need to redirect on different pages
If doc_id does not belongs to our list then it should be redirected to home page
how to do this ? Is it possible to write swtich case ?
Please let me know your feedback as I am very new to URL rewrite/redirect
Regards,
Gaurav