The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> URL help, Need quick HTML help
Project Poisonous
post Jun 24 2007, 11:03 AM
Post #1





Group: Members
Posts: 8
Joined: 24-June 07
Member No.: 3,174



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.

This post has been edited by Project Poisonous: Jun 24 2007, 12:00 PM
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Project Poisonous
post Jun 24 2007, 11:25 AM
Post #2





Group: Members
Posts: 8
Joined: 24-June 07
Member No.: 3,174



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.

This post has been edited by Project Poisonous: Jun 24 2007, 11:28 AM
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Brian Chandler
post Jun 24 2007, 11:46 AM
Post #3


Jocular coder
********

Group: Members
Posts: 2,460
Joined: 31-August 06
Member No.: 43



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.

User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Darin McGrew
post Jun 24 2007, 11:53 AM
Post #4


WDG Member
********

Group: Root Admin
Posts: 8,365
Joined: 4-August 06
From: Mountain View, CA
Member No.: 3



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?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Project Poisonous
post Jun 24 2007, 11:55 AM
Post #5





Group: Members
Posts: 8
Joined: 24-June 07
Member No.: 3,174



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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
needhelp
post Sep 2 2007, 03:54 PM
Post #6





Group: Members
Posts: 1
Joined: 2-September 07
Member No.: 3,701



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
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Sep 2 2007, 05:44 PM
Post #7


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
Joined: 9-August 06
Member No.: 6



Open the document in IE any old way. Use IE's menu (File | Open), drag the disk file to an IE shortcut...
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 23rd April 2024 - 06:48 AM