3 Ponds Posted April 16, 2009 Report Posted April 16, 2009 I am designing my site using HTML4. I have set a base URL of www.sitename.com/home/username/public_html When I mouse over hyperlinks on my home page to attempt to go to another page of my site, the status bar shows the URL as www.sitename.com/home/username/public_html/newpage.html but I get a path error. Yes, the newpage.html is in the public_html directory. I originally had the base URL set as www.sitename.com/public_html but that didn't work and I noticed that the control panel added the home/username to the path it was uploading to so I thought I had found the problem. Unfortunately, that was not the case. What am I missing? Dave Quote
Tony Posted April 16, 2009 Report Posted April 16, 2009 I imagine the software you're using when they say base url they're talking about it as the url of the site. So you'd want just / or blank or whatever it is to make so it's nothing. Then you just upload your files to the public_html folder as you have. Quote
3 Ponds Posted April 16, 2009 Author Report Posted April 16, 2009 (edited) So the correct path to the public_html would include the home/username as in www.sitename.com/home/username/public_html/? I am not sure I am using the correct path to get to my public_html directory. I am new at web site programming but from what I have read, the title gets a base URL with the path to the public_html directory on the website and then anywhere you want to call up a sub-directory within the public_html directory, you create a href link file and it points to the public_html. Do I understand this correctly? Dave Edited April 16, 2009 by 3 Ponds Quote
Tony Posted April 16, 2009 Report Posted April 16, 2009 You're completly incorrect the base url is just nothing. /home/username/public_html is where your site starts serving files. So if you upload a file there is goes to http://sitename.com/ . It does not go to http://sitename.com/home/username/public_html/ So say you upload two files index.html and page.html to your public_html folder and wanted to link from index.html to page.html your href would just be page.html. It would not have any extra paths or anything like that Quote
3 Ponds Posted April 16, 2009 Author Report Posted April 16, 2009 Thank you for your patience - I will try this when I get home tonight. Dave Quote
3 Ponds Posted April 17, 2009 Author Report Posted April 17, 2009 All my links are working. Images are too. As suggested, my problem was the URL I was using to my site. I incorrectly thought I had to path all the way to the public_html subdirectory because that was where the files were stored. Thanks for the help, Dave Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.