PDA

Click to See Complete Forum and Search --> : Website Redirection - Help Needed


modpluz
Feb 1st, 2007, 07:19 AM
hi guyz,

pls how do i make www.mysite.com go to www.mywebsites.com without the user noticing and withour the address in the address bar changing(i know i have to redirect with .htaccess), but i need to know if its possible that if someone that typed www.mysite.com/pages/user be taken to www.mywebsites.com/pages/user?

Note that in this case i own the two websites
i.e.www.mysite.com and www.mywebsites.com

Thank You

rory
Feb 1st, 2007, 02:24 PM
this is how i do it on my site, in ASP .. using Domain Pointers provided by my Hosting Company.

I own the domains www.mysite.com (example only) and also
the example domain below .. so when they type in the example domain name below it goes to my main domain (www.mysite.com) but they see it as the domain they typed in, and they are taken to the specific folder ..


DIM dns
dns = Lcase(REQUEST.SERVERVARIABLES("SERVER_NAME"))
SELECT CASE dns
CASE "myothersite.net"
response.redirect "/somefolder/"
CASE "www.myothersite.net"
response.redirect "/somefolder/"
END SELECT



you could also do it on the domain side ... set up Domain Pointers, ARecords, Web Forwards. Most Hosting companies will do that for you, there are other companies that do even more .. here is a free one i use in addition to my hosting company features (as they were limited on certain A Records using Domain Pointers forwarded to outside IP addresses) ..
www.zoneedit.com/

A Record (Address Record): Maps from an IP address to a domain name. Also referred to as a host or hostname.

CNAME (Canonical Name Record): Creates an alias from one hostname to another. Use of CNAME is generally not recommended.