On my small primary web server, the $_SERVER variable REQUEST_URI always consists of something similar to "/filename.php" however on my small development server (PHP Version 5.3.5-1ubuntu7.3, Apache 2.2.17) exactly the same variable consists of "http://www.example.com/filename.php" (e.g. includes the properly accredited domain title not only the road).

This really is leading to trouble for several Content management systems packages Sometimes with (e.g. Wordpress and Joomla) which appear to depend around the items in REQUEST_URI.

Does anybody have suggestions on which I have to change around the development server to create REQUEST_URI become expected?

Using proxy &lifier HTTP 1.1 results in full URL in REQUEST_URI variable in Apache. Web programs need to test REQUEST_URI prior to trying to concatinate it with host (this bug is available in Wordpress Content management systems for instance).