Results 1 to 4 of 4

Thread: Redirect from subfolder to page - need help

  1. #1
    Join Date
    Mar 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Redirect from subfolder to page - need help

    I hope someone might be able to help me.

    I have a url: http://www.site.com/folder that I want to redirect to
    http://www.site.com/folder/page.html Another thing to note is that the folder and its pages are in the root of a Lotus Notes server.

    How would I be able to achieve this? I have tried a 301 redirect and it doesn't work with subfolders.

    Your opinions & advice is greatly appreciated.

  2. #2
    Join Date
    May 2006
    Posts
    259
    Thanks
    4
    Thanked 1 Time in 1 Post

    Default

    Try:


    <html>
    <head>
    <title></title>

    <script language="JavaScript" type="text/JavaScript">
    <!--
    function MM_goToURL() { //v3.0
    var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
    for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
    }
    //-->
    </script>
    </head>

    <body onLoad="MM_goToURL('parent','http://www.site.com/folder/page.html');return document.MM_returnValue">
    <div align="center"><strong>Loading... Please wait!</strong><br>
    (If nothing happens in 10 seconds please click <a href="http://www.site.com/folder/page.html"><strong>here</strong></a>)</div>
    </body>
    </html>
    "Only dead fish flow with the stream".
    - Unknown

  3. #3
    Join Date
    Mar 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default server side solution

    I appreciate your reply. I must not have mentioned that I want to direct a URL that I am advertising as "www.site.com/foldername" to www.site.com/foldername/index.html . So, essentially, there is no source available to insert the above code, b/c it's a folder users will type in the address.

    In other words, I have advertised the /foldername of my website and I would like a solution a server-side script to redirect the user to my "/foldername/index.html" page.

    Do let me know if there is a server-side solution you might know of.

    Thanks.

  4. #4
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    You can place it in the index.html as this is the default when not file is specified. ALL browsers go to an index page although they don't show the index.*** unless you type it in.

    The only way to NOT have this happen is to not have an index page in that folder.

    You can also try the meta redirect:

    Code:
    <META http-equiv=REFRESH content="0;URL=http://www.site.com/folder/file.html">
    Again this would go in the <head> of the index page
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •