View Full Version : Relative url problem in url/sub/sub/ directory

01-25-2012, 03:25 PM
Im struggling with relative urls for a file in a 2nd level sub directory, basically i have url.com/sub1/sub2/file.php

How can i call the files for file.php?

Im using these urls at the moment which works in DW design view but not on localhost in the browser

<link href="../../style/main_stylesheet.css" rel="stylesheet" type="text/css" />

<?php include('../../includes/scripts.php'); ?>

The include files are located url.com/includes/header.php etc

I am using
<base href="http://localhost/site /> in the head

Well and truly confused because it works for files in the first sub folder using ../includes

01-25-2012, 03:48 PM
I cant believe its taken me 20 minutes to realize what i was trying to do is completely pointless. :o

It was for seo purposes but I can just rename the files and stick them all in the main directory instead. hell of a lot easier :thumbsup: