Using folders as directory not working?
I've created a custom website where each page is it's own index.html file tucked away in its own folder, it was already painful enough uploading to Cpanel (because you can't upload folders for some reason) but then this tactic doesn't even work!
For example, my 'about' page is an index.html file in a folder called "About", in my home pages code the link to the about page looks like this:
ABOUT
. But when I load that HTML and click on the ABOUT hyperlink I get a 404 page not found error. The reason I did this was to avoid having .html at the end of all my websites URLs. I did manage to get this to work but only changing the tag to say href="/About/index.html", which loaded the page, but the URL has a /index.html on the end of it which is even worse than the problem I was trying to solve. All this trouble and I just can't help wonder "does Cpanel just not let you use folders as a website directory?" So does anyone here have any suggestions? am I missing something here? or do I just need to find another way to make the website? Thank you.-
Try adding a following forward-slash to your hyperlinks like this: About0 -
Hello, You may also want to try using the full paths (e.g. /home/$username/public_html/folder-name). Thank you. 0
Please sign in to leave a comment.
Comments
2 comments