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!
Today we get to play amazing games on our super powered game consoles, PCs, VR headsets, and even mobile devices. While I enjoy playing new games these days, I do long for the retro gaming systems I had when I was a kid: the original Nintendo...
My first professional web development was at a small print shop where I sat in a windowless cubical all day. I suffered that boxed in environment for almost five years before I was able to find a remote job where I worked from home. The first...
Let's be honest: even though we all giggle about how cheap of a thrill JavaScript accordions have become on the web, they remain an effective, useful widget. Lots of content, small amount of space. Dojo's Dijit library provides an incredibly simply method by which you can...
One excellent way to add dynamism to any website is to implement a slideshow featuring images or sliding content. Of course there are numerous slideshow plugins available but many of them can be overkill if you want to do simple slideshow without controls or events.
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.