How do I point a sub-directory to another server ?

Discussion in 'Programming' started by profanitytalker, Jun 29, 2010.

  1. #1
    Hi,

    How can I have a sub-directory under a domain point to another server, for example loading http://www.example.com/myscript/ should load the script located on a different server than xyz.com, this can be achieved via using a sub-domain but I need to avoid that.

    example.com - loads from server 1

    example/myscript/ - loads from another server 2

    I am using litespeed.
     
    profanitytalker, Jun 29, 2010 IP
  2. alan_smithee

    alan_smithee Active Member

    Messages:
    873
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    60
    #2
    use iframe?

    <html><head>
    <title>your title</title></head>
    <body leftmargin="0" topmargin="0" rightmargin="0" bottommargin="0"><iframe src="http://yoursecondserver" height="100%" width="100%" frameborder=0 border=0 scrolling=no>
    </body>
    </html>
    Code (markup):
     
    alan_smithee, Jul 1, 2010 IP
  3. samb0057

    samb0057 Active Member

    Messages:
    38
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    86
    #3
    Subdirectories can't be pointed like subdomains.
    You can do a redirect to the other server with a simple php script or htaccess though.
     
    samb0057, Jul 7, 2010 IP