How Can I Fix My Links For A Godaddy Sub-directory?
RSS

How Can I Fix My Links For A Godaddy Sub-directory?

Category: FAQ   Time: 2009-10-13   Tags: , ,

I created a sub-directory which has files containing links to a file in the parent directory. But the file treats the links as if they were in the same sub-directory.
Ex.:
www.cyberboxpr.com/menu/sandwiches.htm… is in the MENU sub-directory. This page has a link (ontv.html) which is supposed to go to www.cyberboxpr.com/ontv.html
The problem is when you click on the link it goes to www.cyberboxpr.com/menu/ontv.html which doesn’t exist. I then tried fixing the problem:
instead of having href=”ontv.html” I wrote href=”cyberboxpr.com/ontv.html BUT, now the link goes to www.cyberboxpr.com/cyberboxpr.com/ontv.h… which also doesn’t exist.
I know I can just put all my files under the parent directory but there are so many that it’s really not an option for me. How can I fix this?

Next: How Cheap Can I Get A Domain Name And Hosting For My Site? And How Would I Do It?
Previous: What Is The Path To Use When Access Godaddy Windows Shared Hosting Site With Only Ip Address (not Fqdn)?
"How Can I Fix My Links For A Godaddy Sub-directory?" was posted on Tuesday, October 13th, 2009 at 9:32 am.

2 Responses to “How Can I Fix My Links For A Godaddy Sub-directory?”
  1. iam(2009-10-13):

    Using relative linking, you’d want to code the anchor (from the file in the menu subdirectory) to go to href=”../../ontv.html”. If you want to use absolute linking (which in a production site you probably should) you’d have to use the http, so href=”http://www.cyberbox.pr.com/ontv.ht…
    I use godaddy, not their site builders – but this would be the same whether you use something of theirs or are coding your own. I actually don’t mind godaddy for smaller sites. Forget it though if you want to do ruby on rails on a shared server – but I digress…

  2. Angela Q(2009-10-13):

    Are you using some sitebuilder they have for their customers? You need to do your own websites. As you have found, Godaddy is useless for hosting.

Leave a Reply

 
Recent Posts
Random Posts