How can I change present directory to another particulary from server1 to server 2

Discussion in 'HTML & Website Design' started by pedong, May 26, 2008.

  1. #1
    i want to activate an html file located at server2 while an html which will activate it is located at server1.. how can i do it?
     
    pedong, May 26, 2008 IP
  2. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Sorry, I'm not following you. What do you mean by "activate"? (If you are wanting to do what I think you're wanting to do, you'll have to rely on Ajax for cross-site scripting, but that brings a CRAPLOAD of security risks into the equation.)
     
    Dan Schulz, May 26, 2008 IP
  3. pedong

    pedong Peon

    Messages:
    30
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    what i only wanted is to change the default directory that's all thank you
     
    pedong, May 27, 2008 IP
  4. multippt

    multippt Peon

    Messages:
    176
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Try a redirect from "server1" to "server2". There are several forms of redirects available. Since you are using a HTML file, you can try a meta refresh on the old file which you want to redirect users to the new file.
    <meta http-equiv="refresh" content="2;url=http://[your new HTML file]">
     
    multippt, May 27, 2008 IP