Here’s a handy tip that I just found. There are a multitude of ways to redirect your WordPress blog temporarily for maintenance. But I recently found myself in a situation where a client needed to be redirected to another site, not just to a holder page (like most plugins do).
Here are the steps:
- Create a file: “wp-content/maintenance.php”. Anything you put here will be displayed for logged-out users. (Thanks to Matt Sivel who pointed this out).
- Once inside that file, copy and paste this code: (don’t forget the php tags)
header( 'Location: http://www.redirectedSite.com' ) ;
Now your WordPress blog should be forwarding to the new location when you’re not logged in, but staying on your site when you do login.


No Responses.
Be the first to start the conversation.