Results 1 to 2 of 2

Thread: Website Redirection - Help Needed

  1. #1

    Thread Starter
    Fanatic Member modpluz's Avatar
    Join Date
    Sep 2005
    Location
    Lag, NG
    Posts
    633

    Website Redirection - Help Needed

    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
    If you want the rabbit to hop, move the carrot - Paul Kellerman(Prison Break)

    onError GoTo http://vbforums.com



    My Bits:
    VB6: Change Column Name in MS ACCESS

  2. #2
    PowerPoster
    Join Date
    May 2006
    Posts
    2,988

    Re: Website Redirection - Help Needed

    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 ..

    Code:
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width