Problem with "Slash"
Posted: 15. December 2010 12:17
I'm using xampplite (default settings) and have some problem which I don't know how to solve.
The thing is that apache (I guess) doesn't understand the links when it's starts with slash "/"
Example:
So if I will have a slash before the css/style.css apache can't find my CSS file. The thing is that the real server (phisical hosting) of my site can't read links without this slash... So basicaly I don't want to create the site pages without these slashes and then when I have to upload the whole site to my hosting provider, I would need to edit all the pages to add all these slashes to every link. :S
The thing is that apache (I guess) doesn't understand the links when it's starts with slash "/"
Example:
- Code: Select all
<link rel="stylesheet" href="css/style.css" type="text/css" />
So if I will have a slash before the css/style.css apache can't find my CSS file. The thing is that the real server (phisical hosting) of my site can't read links without this slash... So basicaly I don't want to create the site pages without these slashes and then when I have to upload the whole site to my hosting provider, I would need to edit all the pages to add all these slashes to every link. :S
- Code: Select all
<link rel="stylesheet" href="/css/style.css" type="text/css" />