It could be a bug, but probably more a (bug) that when altering the site from Document Relative to Site Relative, all files already made and linked with includes etc. are not rewritten to the Site Relative command.
As a document relative website, the link for the homepage when in the same directory would be / and when one directory up it would be …/ to take you a single directory back.
As a site relative website, the link for the homepage would always be / regardless of what directory you are in. I generally am always in Site Relative unless for very good reason.
To be utterly honest though, I am not even really sure why you are using routing in the first place, I mean for me the only reason why I would even use routing to begin with is under certain circumstances where I have a website that pulls all its data from a database and creates a page that is like a template.
Your directory structure you have shown, to me anyway does not really require routing, your site has navigation of the following
- HOME - links to index.php in your root directory
- OUR SERVICES - is a non linking placeholder for the submenu
2a. BURGLAR ALARM - links to burglaralarm.php in the pages directory
2b. CCTV - links to cctv.php in the pages directory
2c. SATELLITE - links to satellite.php in the pages directory
2d. TV AERIALS - links to tv-aerials.php in the pages directory
- OUR WORKS - links to our-works.php in the pages directory
- GET A QUOTE - can not see a link for this as yet
- CONTACT US - links to contact.php in the pages directory
So every page of the website has a corresponding .php file that is called when navigated to, therefore what need do you even have to use routing in the first place.
I would only use routing for situations like this
So for example, lets say I had a property / real-estate website
- I have a home page at the root of my site called index.php
- I have a directory called /properties/
- I have a single php file called index.php in the /properties/ directory.
As you can see my entire website now only has in total 2 pages, however I would like to show property listings for 100 properties all on that same single index.php file sitting in my /properties/ directory.
I start off where all 100 properties worth of data are stored on my sql database, and i design the /properties/index.php as a template that pulls each properties information from that database filtered by url query parameters, like index.php?prop=3 or index.php?prop=27 etc.
Now if a user was navigating my site they could see my homepage, and search for a property which would populate the filter query parameters of my properties page. Therefore that one single page acts like 100 separate pages, with different data and images etc.
The problem, is now two fold, first if a real estate agent wanted to navigate a client directly to a particular page over the telephone, they would have to say, go to http://www.example.com/properties/index.php?prop=72 and that is obviously not ideal it would be easier for the agent to tell the client to go to http://www.example.com/3-bed-texas-home
Second and more importantly, Google and SEO, the URL is a very important factor, and having the first example above indexed by Google honestly does nothing for the content of the page, while having the rewritten URL in the second example will certainly do far better.
I really hope this makes sense, and please do not be offended it is just my opinion, I would be interested to see what other users say about it too.