Redirect from a specific URL

wxdqz

New Member
Hello,

I have a website with multiple DNS entries that point to the site. Is it possible to write a some code into my index page that will identify the typed URL and redirect users to a new page?

e.g. of the result:
A user types <!-- w --><a class="postlink" href="http://www.mainsite.com">www.mainsite.com</a><!-- w --> and is taken to the index page for the site OR a user types <!-- w --><a class="postlink" href="http://www.site2.com">www.site2.com</a><!-- w --> and is taken to the index page which then redirects the user to the new page.

- Any ideas?

Thank you in advance!
 
Back
Top