Blog Migration – survive old tweet link doom via .htaccess code!

I write this from experience – regarding this very blog.

When I moved my blog from [BigName Company] to a specialty host, I had literally thousands of references to my site, mostly to my listing of DDS license office locations.

I discovered an easy solution – craft an .htaccess file with the following code:

Options +SymLinksIfOwnerMatch 
RewriteEngine On 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . https://www.InsertNewSiteNameHere.com [L]

What this does is refer literally every unresolved link / file directly to the new blog address.

It’s a quick fix with ZERO finesse, but is totally worth it considering that visitors hate nothing more than a 404 error without any referrals to the new site.

If this has helped you, you might find more helpful things on the Twitter account:

Hope this helps!
###

About Amy Barnes

Author has extensive experience in Retail, including two years as a supervisor. Educated in Psychology, Financial Accounting, Criminal Justice, and Programming. Work experience in Law Enforcement, Security (IT), Programming (REALBasic, SQL, VB, JAVA), Retail.
This entry was posted in #QuickTip, Business, Commentary, Help Me Understand, News, Programming, Social Media, Tech News, Tech Support, Technology, Web Dev, Web Dev and tagged , , , , , , . Bookmark the permalink.

This site uses Akismet to reduce spam. Learn how your comment data is processed.