Help - Search - Members - Calendar
Full Version: URL help
HTMLHelp Forums > Web Authoring > Markup (HTML, XHTML, XML)
Project Poisonous
I've got a fully-fledged running website, and I've come up across a problem I had once before. I deleted the website so I never resolved the problem and dont know how to.

Problem:
I have .html pages, they all work perfectly when you go to them directly (type them via your URL bar) yet when I click a link from the site, the whole CSS dissapears, so all images, styles etc. arn't shown and is just plain text running downwards. It could be a problem with the actual types URL (could it be because I have a / at the end of the link?)

All Help will be appreciated.


Problem Solved. Resolve: The '/' was un-needed since it was not a directory.

If your URL does not follow to any other pages of your site it will not work
i.e. "http://www.yoursite.com/thenonproblemedpage/followed%20links%20in%20directory"
So this means that "http://www.yoursite.com/thenonproblemedpage/" would work fine, yet if it had no other files in the directory it would become a broken link and will ignore styles.
Project Poisonous
Before any asks, it isnt the browser nor the host. I'm an advanced HTML user, but really havnt had time to look into this problem.

Edit:
I doubt it's the '/' (if you dont understand what I mean e.g: http://www.google.com/image/) closing the link since I had it up before and the links were working perfectly. If you want to check out the problem yourself, click here. Note this is just a test site and will not have any relevance to Project Poisonous. For use on scripts, and this layout is extremely old.
Brian Chandler
QUOTE
I doubt it's the '/' (if you dont understand what I mean e.g: http://www.google.com/image/) closing the link since I had it up before and the links were working perfectly. If you want to check out the problem yourself, click here. Note this is just a test site and will not have any relevance to Project Poisonous. For use on scripts, and this layout is extremely old.


I would think the '/' is the problem. Do you know what '/' means? That the thing it follows is a directory - and in this case it's extremely unlikely that coming%20soon.html is a directory. So I guess that the server finds that coming%20soon.html is actually a file, and serves it, but the browser assumes (as it should) that coming%20soon.html is a directory, and therefore looks for the css files and similar *inside* the (nonexistent) directory coming%20soon.html.

Darin McGrew
QUOTE(Project Poisonous @ Jun 24 2007, 09:25 AM) *
I doubt it's the '/'
Yes, it is the extra shash.

http://www.projectpoisonous.bravehost.com/ is looking for
http://www.projectpoisonous.bravehost.com/default.css which is a text/css style sheet.

http://www.projectpoisonous.bravehost.com/...ng%20soon.html/ is looking for
http://www.projectpoisonous.bravehost.com/...tml/default.css which is a text/html document (which tries to link to itself as a style sheet, interestingly enough).

See the FAQ entry How can I avoid using the whole URL?
Project Poisonous
Yep, thanks alot guys. I've just check it out before I saw the replies and it is. I was studying HTML quite a while back and forgot about the directories part. Topic may be locked or Stickied.
needhelp
Please can you help me before i get lost again! I would like to know how do i check the web page i am building off line on internet explorer. torickert@hotmail.com
pandy
Open the document in IE any old way. Use IE's menu (File | Open), drag the disk file to an IE shortcut...
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.