Migrating WordPress from apache 2.2 to apache 2.4

You might want to run apache 2.4 on a non-standard port while you are getting things working, WordPress will redirect the hit to the standard URL preventing testing.

So add something like this to the top of your wp-config.php:

// stay on new server
if ( $_SERVER['SERVER_PORT'] == 8999 ) {
define('WP_HOME','http://jamespo.org.uk:8999/wp');
define('WP_SITEURL','http://jamespo.org.uk:8999/wp');
}

This entry was posted in Uncategorized and tagged , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*