Results 1 to 3 of 3

Thread: URL for my new file will not work

  1. #1

    Default URL for my new file will not work

    Ok...bear with me because I have no idea about this stuff.

    i have placed a file names links.html in my Legacy file manager>web root folder with the help of a friend.

    When I click on the file I have a box show up on the right with a bunch of options. At the bottom it shows the URL for the file however when I click on the link or cut and paste it into the address bar I gat a 'file not found' page come up.

    Does anyone know what I'm doing wrong?

    Thanks in advance.
    Paul

  2. #2
    Join Date
    May 2006
    Location
    Toronto Canada
    Posts
    84

    Default

    Paul, if I understand correctly you have a file now in your web root folder whose physical address would be something like /public_html/links.html which is fine. Now you want to do what... edit it ? view it ?

    To view it you should enter http://yoursite.com/links.html in your browser (IE, Firefox, whatever) and you should be able to see the contents of the file in your web browser.

    If you want links.html to be the default page for yoursite.com, you should see if you can find a file called .htaccess (note: include the dot before htaccess in the name) in your site root directory. This file sets the default page that opens at your site address ad specifies the types of files are enabled. It should be one of the first files below the folders listed there. If you can't find it create .htaccess using "new file" on the control panel. Open it using edit or code edit on the menu and paste in this content:
    # Use PHP5 as default
    AddHandler application/x-httpd-php5 .php
    AddType application/x-httpd-php .html .php
    DirectoryIndex links.html

    # This method no longer available Please use the
    # 'PHP Config' link in your control panel if you
    # would like to try PHP5 FastCGI
    # AddHandler php-fastcgi .php
    Note that we put in links.html instead of what is usually there - index.html or index.php which are normally used as the first page in sites. This change is necessary if you want the default page to be links.html when someone goes to your site - i.e. if they put in http://www.yoursite.com the links page opens.
    Save the file and test it in your browser again. Should be fine.

    Want to know more about htaccess files ? search the forum - there are a zillion posts on it in here.

    If you want to edit the links.html file content, the best way is to do it on your PC and upload it like you did the first time. If you want to edit it "live" you can, by right-clicking and selecting edit or code edit.

    Hope this helps. if it doesn't be patient and try to describe what you are trying to achieve, what you've tried, and what happened as precisely as you can. Help will be faster and more abundant the more precise you can be.

    PS DO post back when you've fixed your problem so someone can learn from your experience.

  3. #3
    Join Date
    May 2006
    Location
    Toronto Canada
    Posts
    84

    Default

    Okay I went to your site and see that you've added a "links" link pointing to which is fine. The file clearly is NOT where you think it is. That is the problem....whoever helped you upload it put it somewhere other than the root directory which is /public_html/

    Forget all the previous stuff I was trying to help you get over a different problem. Waste of time for both of us.... therin lies the value of taking the time to describe the problem adequately.

Posting Permissions

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