On my main web server, the $_SERVER variable REQUEST_URI always contains something like "/filename.php" however on my development server (PHP Version 5.3.5-1ubuntu7.3, Apache 2.2.17) the same variable contains "http://www.example.com/filename.php" (e.g. includes the fully qualified domain name not just the path).
This is causing problems for several CMS packages I work with (e.g. Wordpress and Joomla) which seem to rely on the contents of REQUEST_URI.
Does anyone have any suggestions on what I need to change on the development server to make REQUEST_URI behave as expected?
Using proxy & HTTP 1.1 leads to full URL in REQUEST_URI variable in Apache. Web applications have to test REQUEST_URI before trying to concatinate it with host (this bug exists in Wordpress CMS for example).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With