Reputation: 39
i have a website which has this structure:
CSS/
index.php
so here's the problem: index.php links the style.css with relative path like so "../CSS/style.css"
and products.php includes index.php using include "../index.php"
but the css isn't being included because NOW index.php is in the same folder as products.php so relative path won't work !!
is there any solution a part from absolute path because i don't want people to know the structure of my project
if there is not can you give me the absolute path or can i somehow hide the absolute path from the user
thank you in advance for your time
Upvotes: 0
Views: 77
Reputation: 478
try to use this syntax:
<link rel="stylesheet" type="text/css" href="/CSS/style.css">
Upvotes: 1