Unfortunately just the '$_SERVER['REQUEST_URI']' on its own still displays /index.php on the end, I just needed to hide the actual filename on the end (to make it nice and tidy!)
If anyone's interested, I managed to bodge it together:
PHP Code:
<?php
$this_dir = $_SERVER['REQUEST_URI'];
if (strpos($this_dir, basename($_SERVER['REQUEST_URI'])) !== false) $this_dir = reset(explode(basename($_SERVER['REQUEST_URI']), $this_dir));
echo $this_dir;
?>
Now we get something like /directory1/otherthing/potato/ rather than /directory1/otherthing/potato/index.php
Thanks for nudging me in the right direction