views:

151

answers:

1

I am moving websites from one server to another. Both are on a similar variant of Centos 5 x64 with Apache 2.2 and PHP 5.2.X.

Some of my scripts including Wordpress are behaving incorrectly. It turns out the issue is the difference between the REQUEST_URI global:

On the older server: REQUEST_URI = /phpinfo.php
On the new server: REQUEST_URI = http://www.mydomain.com/phpinfo.php

I have changed my own code to accommodate either variant but don't really want to do it for Wordpress etc.

What do I need to do in apache/php to make REQUEST_URI behave as per the old server?

Thanks,

Daniel

A: 

At a guess, the old server is processing the request using the default vhost while the newer server uses a named virtual host (although that could be back to front).

C.

symcbean
They're actually both on vhosts. The problem was the HTTP proxy method I was using to test the site as bobince pointed out.
Daniel Skinner