1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

[HELP] htaccess fetch content from another domain

Discussion in 'General Scripting Chat' started by seojumper, Aug 27, 2010.

  1. seojumper

    seojumper Regular Member

    Joined:
    Jan 13, 2008
    Messages:
    233
    Likes Received:
    27
    I was wondering if it is possible to fetch content from second domain under the URL od the first domain.

    I want to have a WP blog on (on different c class hosting)
    --> www.example.com (with only htaccess script)

    I would like to have my blog farm on one host, for easier control and backup
    --> example.blogfarm.com

    Is it possible for htaccess to show the content from example.blogfarm.com
    under URL:www.example.com.

    I suppose this way google (and all the rest) will think that whole
    WP site is hosted on www.example.com?

    Is it possible and how? Can pay for htaccess script.
     
  2. cyklotrial

    cyklotrial Regular Member

    Joined:
    Oct 13, 2008
    Messages:
    248
    Likes Received:
    82
    Location:
    Wonderland
    Use CNAME field in your domain settings.
    Or just mask your domain :) (Domain Forwarding)

    With .htacces you only can redirect user AFAIK
     
    Last edited: Aug 27, 2010
  3. origin

    origin Regular Member

    Joined:
    Nov 11, 2008
    Messages:
    334
    Likes Received:
    90
    Home Page:
    I'm not sure, but I think that it's not possible by only using htaccess commands.
     
  4. seojumper

    seojumper Regular Member

    Joined:
    Jan 13, 2008
    Messages:
    233
    Likes Received:
    27
    With CNAME and DomainForwarding I will probably loose "different c-class ip"
    because the IP of the www.example.com and example.blogfarm.com will be the same? is that right?
     
  5. cyklotrial

    cyklotrial Regular Member

    Joined:
    Oct 13, 2008
    Messages:
    248
    Likes Received:
    82
    Location:
    Wonderland
    server IP - yes
    domain IP - no

    but to be sure in 100% test it
     
  6. raymondb

    raymondb Newbie

    Joined:
    May 24, 2010
    Messages:
    12
    Likes Received:
    0
    Home Page:
    have you setle ur problem?
     
  7. hasselblad

    hasselblad Newbie

    Joined:
    Jan 3, 2010
    Messages:
    40
    Likes Received:
    0
    Home Page:
    Dont use htaccess, use one db and multiple websites .