Load content from a folder and not from public_html

Discussion in 'Site & Server Administration' started by ASTRAPI, May 8, 2010.

  1. #1
    Hello

    I have a domain like www.mydomain.com and i have upload in the public_html my files in a folder named files all my web content.

    As i want to load them from the folder and not upload them to the public_html how i can load the content from there?

    so every time tha a user goes to www.mydomain.com to view my design from the folder named files?

    Maybe with .htaccess file and how?

    Thank you
     
    ASTRAPI, May 8, 2010 IP
  2. 50plus

    50plus Guest

    Messages:
    234
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You can put an index or default.html page in your root directory with the following :

    <html>
    <head>
    <meta http-equiv="REFRESH" content="0;url=http:// www.mydomain.com/files/">
    </head>
    <body>
    </body>
    </html>

    When visitors access http:// www. mydomain. com they will be redirected to directory /flles/ provided that that directory also has an index or default page.

    Remove the empty space from the URL, it's only in there to break the link to nowhere.
     
    50plus, May 9, 2010 IP
  3. ASTRAPI

    ASTRAPI Guest

    Messages:
    500
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    ASTRAPI, May 9, 2010 IP