SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Jul 2008
    Posts
    74
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Capture HTTP requests from different URL?

    I have a webserver that I wish to retire, and I've already moved its content to a subfolder on another server. Can the root URL that I've been using for the first server point to the second server's subfolder? My understanding is that this cannot be done through CNAMEs in a DNS. If I set the DNS so that, say, second.mysite.com has the same IP address as www.mysite.com, can the server detect the incoming URL and automatically redirect to the subfolder?

  2. #2
    SitePoint Mentor NightStalker-DNS's Avatar
    Join Date
    Jul 2004
    Location
    Cape Town, South Africa
    Posts
    2,876
    Mentioned
    46 Post(s)
    Tagged
    0 Thread(s)
    Yes, in IIS. The configuration of your old site, you can set it to redirect to the new sub folder

  3. #3
    Certified Ethical Hacker silver trophybronze trophy dklynn's Avatar
    Join Date
    Feb 2002
    Location
    Auckland
    Posts
    14,650
    Mentioned
    19 Post(s)
    Tagged
    3 Thread(s)
    cars,

    What you're talking about is DNS records which can be accomplished on any server (not just IIS).

    HOWEVER, since you can take a site down with a DNS error, I would rely (first) on mod_rewrite which can be setup to redirect to any web address whereas DNS will only redirect to another (registered) domain.

    Regards,

    DK
    David K. Lynn - Data Koncepts is a long-time WebHostingBuzz (US/UK)
    Client and (unpaid) WHB Ambassador
    mod_rewrite Tutorial Article (setup, config, test & write
    mod_rewrite regex w/sample code) and Code Generator


Bookmarks

Posting Permissions

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