Override WordPress URL
When I migrated my website between Media Temple servers, I wanted to manually test the site to ensure no server configuration differences between the server were bricking the site. The obvious problem I would encounter is that links would be broken because the site wasn't living on my domain name yet. I did some research and found a way to easily override the WordPress site and home URLs:
define('WP_HOME', 'http://867.53.0.9');
define('WP_SITEURL', 'http://867.53.0.9');
Defining these values within the wp-config.php file allows me to override the database values for the home and site-wide domain settings; now the site is easily testable before flipping the switch on domain settings!
CSS and JavaScript: the lines seemingly get blurred by each browser release. They have always done a very different job but in the end they are both front-end technologies so they need do need to work closely. We have our .js files and our .css, but...
The hottest device out there right now seems to be the iPad. iPad this, iPad that, iPod your mom. I'm underwhelmed with the device but that doesn't mean I shouldn't try to account for such devices on the websites I create. In Apple's...
As we move toward more true web applications, our JavaScript APIs are doing their best to keep up. One very simple but useful new JavaScript API is the Fullscreen API. The Fullscreen API provides a programmatic way to request fullscreen display from the user, and exit...
Once again David, another awesome and super useful article I’ll share with people for sure. Keep up the good work! Let us know if you ever need anything.
Drew J
(mt) Media Temple
@MediaTempleHelp
Thank you Drew!
867.53.0.9: Jenny needs to get a valid IP address.
You win Jeremiah!
I like this technique:
Now you make sure local-config.php is in your .gitignore file, and you can git push your WordPress install to your server.
Wouldn’t it be easier to edit your host file?
Yeah, probably, but most non-tech people would try to avoid that.