+ Reply to Thread
Results 1 to 4 of 4

Thread: web page in different directory other than public_html
      
   

  1. #1
    spaceman is offline Private
    Join Date
    Aug 2007
    Posts
    2

    Default web page in different directory other than public_html

    Hello-

    I'm seeking assistance on the following.

    1) I created a website and published using BV and the index.html got published to public_html. I also wanted to publish one of the links from my main page of the website in to another folder but not in public_html and so I published another index.html in to
    mydomainname/newfolder/index.html.

    2) now I tried to create link in my main page to this 2nd index.html which is in a different folder by specifying as http://mydomainname/newfolder/index.html

    3) when I try to access my site, I get an error that HTTP:404 page not found.

    Can someone help me to state what could be the problem? can i not publish html's in to another folder other than public_html? please help.

    Appreciate your help in advance.

    Thanks

  2. #2
    LadyEye's Avatar
    LadyEye is offline General & Forum Moderator
    Join Date
    Jun 2006
    Location
    Canada
    Posts
    10,548

    Default Re: web page in different directory other than public_html

    Hi

    public_html is the directory to your main domain, like you say and know .. creating a folder within the public_html is what I understand that you did .. be sure that it resides within the public_html directory ..

    not sure, but perhaps it is because you are calling the page index

    try renaming the page and republishing to this other folder ..

    As a test, try renaming the page test - publishing it to public_html/nameoffolder

    linking as you have done ..

    http://www.yourdomain.com/nameoffolder/nameofpage.html

    VodaHost

    Your Website People!
    1-302-283-3777 North America / International
    07031847328 / United Kingdom

    ------------------------

    Top 3 Best Sellers

    Web Hosting - Unlimited disk space & bandwidth.

    Reseller Hosting - Start your own web hosting business.

    Search Engine & Directory Submission - 300 directories + (Google,Yahoo,Bing)



  3. #3
    Andy128's Avatar
    Andy128 is offline Major General
    Join Date
    Dec 2005
    Location
    Michigan
    Posts
    2,322

    Default Re: web page in different directory other than public_html

    In any subfolder- the index page works the same as your index page in the public_html folder. That is- it does not need to be called by its page name - index.html

    So, if you have a subfolder as the Lady has suggested- nameoffolder
    and you place an index page in it, you can simply link it like this;

    http:// www.yourdomain.com/nameoffolder

    This will display your index page.

    Also- in the main domain name- spelling is not important. www.GoOgLe.com will work just as good as www.google.com

    This is not the case in subsequent pages or folders. In all other additional pages of the website the, links to those pages- spelling must match EXACTLY as they are now case sensitive. THIS IS WHERE MOST OF THE PROBLEMS WITH LNKS NOT WORKING- RESIDES.

    Hope that helps

    Andy
    PHP- is a blast!

  4. #4
    spaceman is offline Private
    Join Date
    Aug 2007
    Posts
    2

    Default Re: web page in different directory other than public_html

    thanks andy and ladyeye...

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49