SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    SitePoint Enthusiast
    Join Date
    Sep 2002
    Location
    Melbourne, Australia
    Posts
    82
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Unhappy mod_rewrite invisible redirect to different domain

    I have to redirect subdomain.domain.com to an ip address.

    IE subdomain.domain.com ot 10.1.1.1:8008

    However I want this to be totally invisible so the user always sees subdomain.domain.com and never the ip address. Is this possible, I have been trying for some time with no success.

    I also tried doing it via the dns zone record however I had no idea what I was doing and tutorials I found were totally not helpful.
    sigy

  2. #2
    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)
    Jixor,

    Since this can only be done with an absolute redirect, it is NOT possible.

    Think about it, you wouldn't want someone to display your pages as if they were theirs, would you?

    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

  3. #3
    SitePoint Enthusiast
    Join Date
    Sep 2002
    Location
    Melbourne, Australia
    Posts
    82
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Only option is learning how to edit zone file then?
    sigy

  4. #4
    SitePoint Enthusiast
    Join Date
    Sep 2002
    Location
    Melbourne, Australia
    Posts
    82
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok so it seems to be a bit more complicated. I want to point the subdomain to a computer on an internal network, this is fine, I can configure the router, however it seems that other computers on the network aren't able to access the server via its external ip. What would control this and should using the subdomain overcome this problem?
    sigy

  5. #5
    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)
    Jix,

    Other computers on the network are trying to get their requests past your firewall twice. Why not use the INTRANET IP Address instead of the "external ip?" That should make life much easier for you.

    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

  6. #6
    SitePoint Enthusiast
    Join Date
    Sep 2002
    Location
    Melbourne, Australia
    Posts
    82
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    There is some complex issues and I believe the way around it is to have the site access via the domain. Also this will be good because people in branch offices or at home will all use the same address to access the intranet server.
    sigy

  7. #7
    SitePoint Zealot dereko's Avatar
    Join Date
    Dec 2003
    Location
    Ireland
    Posts
    189
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If you want a subdomain of a external domain to point to an different ip just add an custom A record in your DNS settings to specifically point the domain to the IP?


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
  •