Moving pages or changing URLs on your website? Worried you’ll lose SEO power, traffic, or confuse your visitors? This step-by-step guide will walk you through everything you need to know about 301 redirects—the professional way to signal SEO-safe, permanent URL changes.
Whether you’re using a WordPress site or a custom/static site, you’ll learn hands-on and validated techniques for both the manual (.htaccess) and plugin methods. By the end, you’ll:
Result: Your old URLs will take visitors and search engines seamlessly to new destinations, protecting your SEO and user experience.
Your Site Type | Recommended Method | Difficulty |
---|---|---|
WordPress (admin) | WordPress plugin (Redirection/Yoast) | Easy |
Static/Custom (FTP) | .htaccess file (Apache servers only) | Moderate |
No access to files | Web host/cPanel redirect tool (refer to host docs) | Easy |
Command: Familiarize yourself with what a 301 redirect is and its SEO significance.
Explanation: A 301 redirect is a permanent instruction that tells browsers and search engines: “This page/URL has moved—please use this new one from now on.” It’s the only redirect that fully passes most SEO authority to the new location. Use it when:
Expected Result: You’re clear on when (and when not) to use permanent 301 redirects. Read more at Moz.
Command: Make a backup of your website or .htaccess file before making any changes.
Explanation: Editing core files like .htaccess can easily break your whole site! Plugins generally reduce risk, but changes are still best made with a fresh backup in place.
.htaccess
(usually in public_html
or /root directory).Expected Result: If anything goes wrong, you can quickly restore your site to its previous state.
⚠️ Warning: Proceed only after backup! If you lose access due to an error, restore this file or contact your host’s support.
Command: Install and set up a reputable WordPress redirect plugin (like "Redirection" or "Yoast SEO Premium") to safely manage 301 redirects—no code needed.
Explanation: The plugin approach is ideal if you’re not comfortable editing server files. Here’s how to do it:
1. Install the plugin (example: Redirection):
2. Configure your first 301 redirect:
/old-page/
)https://yoursite.com/new-page/
)Expected Result: The new rule appears in the list. Test: Visit your old URL in a browser—should immediately redirect to the new address. If it doesn’t, clear your cache and try again.
Checkpoint: In Redirection, look under “Hits” for activity (shows if the redirect has been triggered).
🔍 WPBeginner: Beginner’s Guide to Creating Redirects in WordPress
Command: Edit your .htaccess
file to manually set up a 301 redirect—only if your site uses Apache hosting (static/custom sites). Use a text editor, not Word or Google Docs!
Explanation: After backup, proceed with care:
.htaccess
in the root/public_html directory.Redirect 301 /old-page/ https://yoursite.com/new-page/
RewriteEngine On
RewriteCond %{HTTP_HOST} ^yoursite\.com [NC]
RewriteRule ^(.*)$ https://www.yoursite.com/$1 [L,R=301]
Expected Result: The .htaccess file looks correct and the site remains live. Test the old URL in a browser—it should take you to your new URL instantly.
Checkpoint: Use tools like httpstatus.io to confirm the returned status is 301 Moved Permanently.
Common Error Alert:
Command: ALWAYS check your work after each redirect is set—both in your browser and with online tools.
Explanation:
Expected Result:
Command: If something isn't working (wrong destination, errors, loop), refer to this action table:
Problem | Likely Cause | Quick Solution |
---|---|---|
500 Internal Server Error | Typo/syntax error in .htaccess | Restore backup file, check for extra spaces or misplaced text |
URLs not redirecting | Rule misplacement, typo, cache, conflict | Clear browser/site cache, check rule order, verify plugin list |
Redirect loop (ERR_TOO_MANY_REDIRECTS) | Conflicting rules or double redirects | Remove double rules, test with only one active, fix plugin rules |
Site inaccessible after edit | Bad .htaccess | Rename/delete .htaccess via FTP to regain access, revert backup |
New URL returns 200 (not 301) | Wrong redirect type or plugin config | Double-check settings, ensure 301 (not 302/307) is set |
Expected Result: You problem-solved your way back to a working site and correct redirect!
For more troubleshooting tips, see InMotionHosting’s .htaccess Guide.
Command: After implementing 301 redirects, monitor your site’s SEO performance for a few weeks.
Explanation: 301 redirects transfer most (not all) SEO value, but you may notice a small fluctuation before rankings stabilize. To maximize SEO:
Expected Result: Your SEO remains steady, users never notice a thing, and your website’s authority and traffic are preserved!
Q: Can I use 301 redirects to move my whole site to a new domain?
A: Yes, use a site-wide rewrite rule in your .htaccess or plugin interface. See Moz's advanced redirect guide.
Q: Do I need to keep 301 redirects forever?
A: Ideally, yes—especially if external sites or users might still access old URLs.
Quick Reference Links:
You’ve mastered the safe, SEO-friendly way to use 301 redirects—whether via plugin or manual file edit. Your traffic (and search engine cred) is protected!
Next:
Stay tuned for new tutorials to keep your site in top SEO shape!