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!
David asked me if I'd be up for a guest post picking out some of my favorite Pens from CodePen. A daunting task! There are so many! I managed to pick a few though that have blown me away over the past few months. If you...
If you follow me on Twitter, you know that I've been working on a super top secret mobile application using Appcelerator Titanium. The experience has been great: using JavaScript to create easy to write, easy to test, native mobile apps has been fun. My...
Background animations are an awesome touch when used correctly. In the past, I used MooTools to animate a background position. Luckily these days CSS animations are widely supported enough to rely on them to take over JavaScript-based animation tasks. The following simple CSS snippet animates...
Speech recognition software is becoming more and more important; it started (for me) with Siri on iOS, then Amazon's Echo, then my new Apple TV, and so on. Speech recognition is so useful for not just us tech superstars but for people who either want to work "hands...
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.