Skip to content

Instantly share code, notes, and snippets.

@jruck
Last active December 12, 2015 02:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jruck/4699456 to your computer and use it in GitHub Desktop.
Save jruck/4699456 to your computer and use it in GitHub Desktop.
htaccess: migrate WP to Tumblr
Options +FollowSymLinks
RewriteEngine on
# Redirect old popular posts to counterparts on Tumblr
Redirect 301 /old/post/URL http://NEWDOMAIN.TLD/post/1234567890
Redirect 301 /old/post/URL http://NEWDOMAIN.TLD/post/1234567890
# ... and so on
# Redirect old image/media directories to new storage location
Redirect 301 /wp-content/uploads http://NEW.DOMAINFORHOSTINGYOUROLDIMAGES.com/wp-content/uploads
# Redirect old feed to new feed, if applicable
Redirect /feed http://feeds.feedburner.com/NEWFEED
# Redirect the rest of everything to your new Tumblr homepage
RewriteRule ^$ http://www.NEWDOMAIN.TLD/ [R=301,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment