1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice

at_domains_index.html

Discussion in 'Plesk for Linux - 8.x and Older' started by ilustrate, Jul 24, 2005.

  1. ilustrate

    ilustrate Guest

    0
     
    i found this file in my httpdocs directory of a domain i'm just starting to develop. Any idea how it got there? And what it actually does?


    <html>
    <head>
    <title>Relocate</title>
    <script language="javascript">
    var url = window.location.href;
    if (url.charAt(url.length - 1) != "/")
    url = url + "/";
    var s = url.indexOf("//") + 2;
    var e = url.indexOf("@");
    if (e > 0) {
    var atpart = url.substring(s, e);
    var newurl = url.substring(0, s) + url.substring(e + 1 , url.length);
    window.location = newurl + "~" + atpart + "/";
    } else {
    window.location= "/index.html";
    }
    </script>
    <meta http-equiv="refresh" content="4" url="/index.html">
    </head>
    <body>
    <noscript>
    Sorry, your browser does not support Java Script.
    </noscript>
    </body>
    </html>
     
  2. jamesyeeoc

    jamesyeeoc Guest

    0
     
    This is a normal file which Plesk puts into the httpdocs folder.
     
  3. Cranky

    Cranky Guest

    0
     
    It's so you can add a subdomain, for example, cranky.domain.com to a domain in Plesk. Then you can access it via http://cranky@domain.com in your browser.

    It's a bit pointless if you ask me! :D
     
Loading...