I am trying to do URL redirection like this using Apache on CentOS:
w w w.newURL.com/somequery
To display the content of the page
w w w.oldURL.com/somequery
Except that all of the links in that page like:
<a href=" w w.oldURL.com/somethingfoo...">
To be rewritten or redirected to:
<a href=" w w.newURL.com/somethingfoo...">
But, when the old adress is accessed
w w w.oldURL.com/page.jsp
those links in the page should not be changed.
Can someone tell me step by step all the things I need to do, because I'm a beginner in Apache configuration.
w w w.newURL.com/somequery
To display the content of the page
w w w.oldURL.com/somequery
Except that all of the links in that page like:
<a href=" w w.oldURL.com/somethingfoo...">
To be rewritten or redirected to:
<a href=" w w.newURL.com/somethingfoo...">
But, when the old adress is accessed
w w w.oldURL.com/page.jsp
those links in the page should not be changed.
Can someone tell me step by step all the things I need to do, because I'm a beginner in Apache configuration.