Showing posts from April, 2013

How to Access Wordpress from two URLs (IP)

If you have developed a wordpress Site to be configured for internet and Intranet. The following script will let you access the wordpress site from two different IP address or URLs. The home folder of wordpress contains a wp-config.php file. Include the following lines into the wp-config.php file $LAN_PREFIX = '172.16.'; if(substr($_SERVER['REMOTE_ADDR'], 0, strlen($LAN_PREFIX)) == $LAN_PREFIX) {     define('WP_HOME','');     define('WP_SITEURL','');      // The local IP } else {     define('WP_HOME','');     define('WP_SITEURL','');      // The public IP } this will be suitable for those who needs to conserve the bandwidth inside your campus (Use Intranet) and can access outside the campus (Use Internet). NB: Once this setting is enabled and restart the server, inside the wordpress dashboard-> settings –>