How to Add 301 Redirects Safely
WordPress Tutorials & How-To (Advanced)
How to Add 301 Redirects Safely in WordPress
301 redirects tell search engines that a URL has permanently moved to a new location. They preserve SEO rankings, prevent broken links, maintain user experience, and avoid 404 errors. Whether you’re changing permalinks, moving pages, or deleting old content, this advanced guide shows how to add 301 redirects safely using Rank Math, .htaccess, cPanel, and redirection plugins.
1
What Is a 301 Redirect?
A permanent redirect that preserves SEO value.
A 301 Redirect sends users & search engines to a new URL permanently.
Examples:
- Old URL → New updated URL
- HTTP → HTTPS
- Non-www → www
- /blog → /articles
Benefits:
- Prevents 404 errors
- Passes ~90–99% SEO authority to new URL
- Keeps Google indexing clean
- Improves user experience
- Fixes broken external backlinks
2
When Should You Use a 301 Redirect?
Use redirects only when needed.
- Changing old URLs
- Deleting pages or posts
- Fixing faulty permalinks
- Migrating from HTTP to HTTPS
- Moving from non-www to www (or vice-versa)
- Changing category or product URL slugs
- Merging duplicate content
- Launching a redesigned website
Always ensure the new URL matches the old content intent.
3
Method 1 — Add 301 Redirects Using Rank Math (Recommended)
The safest & easiest method for SEO.
Step 1 — Enable Redirections Module
- Go to Rank Math → Dashboard
- Enable Redirections
Step 2 — Add New Redirect
- Go to Rank Math → Redirections
- Click Add New
- Enter:
- Source URL (old URL)
- Destination URL (new URL)
- Select 301 Permanent Move
- Save
Features of Rank Math Redirects:
- Bulk import redirects
- Track hits for each redirect
- Auto-redirect removed posts
- Regex support (advanced patterns)
- Safe for WooCommerce URLs
4
Method 2 — Add Redirects Using Redirection Plugin
Powerful option with 404 monitoring.
Install the plugin: Redirection
Steps:
- Go to Tools → Redirection
- Click Add New
- Choose:
- Source URL
- Target URL
- Group (optional)
- Select 301 Permanent
- Save
Bonus Feature:
The plugin captures 404 errors and lets you redirect them safely.
5
Method 3 — Add 301 Redirects via .htaccess (For Apache Servers)
Fastest, but requires caution.
Edit your .htaccess file (take a backup first).
Add this line:
Redirect 301 /old-page/ https://yourwebsite.com/new-page/
To redirect the entire domain:
RedirectMatch 301 ^/(.*)$ https://newsite.com/$1
Be careful — a small mistake can break your whole website.
6
Method 4 — Add Redirects Using cPanel Redirects
Beginner-friendly hosting-level redirects.
- Login to cPanel
- Click Redirects
- Select Permanent (301)
- Enter:
- Old URL path
- New URL
- Save
This redirect is handled at the server-level (very fast).
7
Method 5 — Cloudflare Page Rules Redirects
Best for domain-wide redirects.
Go to:
Cloudflare → Rules → Page Rules → Create Rule
Example Redirect:
https://oldsite.com/* → https://newsite.com/$1
Choose:
Forwarding URL → 301 Permanent
Good for:
- Domain migration
- www → non-www conversions
- HTTP → HTTPS redirects
8
SEO Best Practices for 301 Redirects
Follow these to maintain rankings.
- Always redirect to the most relevant new page
- Avoid redirect chains (A → B → C)
- Avoid redirect loops (A → B → A)
- Update internal links after redirect
- Remove outdated URLs from sitemap
- Check Google Search Console for 404s
- Use short and clean URLs
Good redirects = better indexing + better UX.
9
Common Redirect Problems & Fixes
Avoid the usual mistakes.
1. Redirect Not Working?
- Clear cache (plugin + server + Cloudflare)
- Check .htaccess formatting
2. Redirect Loop Detected
The source and destination URLs are conflicting.
3. Redirect Chains Detected
Fix by pointing old URL → final URL only.
4. 404 Errors Still Appearing
- Check Google Search Console
- Use Redirection plugin’s 404 logs
5. WooCommerce Redirect Issues
Disable cache on Cart/Checkout pages.
Want a Website With Proper SEO & Redirect Structure?
All SiteCrafted premium websites come with pre-configured SEO, redirects, optimized permalinks, and Google Search Console setup.









