Problem with "Slash"

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Problem with "Slash"

Postby Sugarfree » 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:

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" />
Sugarfree
 
Posts: 1
Joined: 01. April 2008 23:50

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 119 guests