WordPress Tutorials & How-To (Advanced)

How to Add 301 Redirects Safely

blog-post-banner

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

  1. Go to Rank Math → Dashboard
  2. Enable Redirections

Step 2 — Add New Redirect

  1. Go to Rank Math → Redirections
  2. Click Add New
  3. Enter:
    • Source URL (old URL)
    • Destination URL (new URL)
  4. Select 301 Permanent Move
  5. 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:

  1. Go to Tools → Redirection
  2. Click Add New
  3. Choose:
    • Source URL
    • Target URL
    • Group (optional)
  4. Select 301 Permanent
  5. 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.

  1. Login to cPanel
  2. Click Redirects
  3. Select Permanent (301)
  4. Enter:
    • Old URL path
    • New URL
  5. 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.

Get SEO-Optimized Website

admin

admin

Author at SiteCrafted Web Solutions

Sandeep Sangam is the Founder of SiteCrafted Web Solutions and a WordPress expert specializing in high-performance business websites, SEO-ready templates, and conversion-focused designs. With years of experience helping small businesses and entrepreneurs build a strong online presence, he creates beginner-friendly WordPress tutorials that simplify complex concepts and make website building easy for everyone.

Through SiteCrafted, Sandeep has helped hundreds of clients launch beautiful, fast, and scalable WordPress websites without technical complexity. His mission is to provide practical guidance, ready-to-use solutions, and professional resources that empower users to build and grow their websites with confidence.

View all posts by admin
author-avatar

About admin

Sandeep Sangam is the Founder of SiteCrafted Web Solutions and a WordPress expert specializing in high-performance business websites, SEO-ready templates, and conversion-focused designs. With years of experience helping small businesses and entrepreneurs build a strong online presence, he creates beginner-friendly WordPress tutorials that simplify complex concepts and make website building easy for everyone.

Through SiteCrafted, Sandeep has helped hundreds of clients launch beautiful, fast, and scalable WordPress websites without technical complexity. His mission is to provide practical guidance, ready-to-use solutions, and professional resources that empower users to build and grow their websites with confidence.