1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Access a file from other domain/server

Discussion in 'Apache' started by ranjith, Sep 1, 2005.

  1. #1
    I want to make use of the files in server1(www.domain1.com)

    for (ne.domain2.com)server2.

    for eg:-

    from (ne.domain2.com)server2, if i request

    http://ne.domain2.com/aboutus.html, the file should be

    from server1(http://www.domain1.com/aboutus.html) but the

    address bar should show http://ne.domain2.com/aboutus.html
     
    ranjith, Sep 1, 2005 IP
  2. ranjith

    ranjith Guest

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I tried this piece of code:

    RewriteEngine ON
    RewriteRule ^aboutus\.html$ http://www.domain1.com/about_us.php [P]

    Its working, but for few files i use secured connection.

    If i use

    RewriteRule ^aboutus\.html$ http://www.domain1.aboutus.php [P]

    it is works perfectly

    But

    RewriteRule ^aboutus\.html$ https://www.domain1.aboutus.php [P]

    It gives an internal server error.
     
    ranjith, Sep 2, 2005 IP