Back to blog

What Is a Redirect? Meaning, Usage & Practical Examples Explained

与謝秀作

リダイレクトとは?意味・使い方・具体例をわかりやすく解説

When running a website, URL changes and site migrations are unavoidable. That's where redirects become essential. Without proper redirect setup, users hit 404 errors and the SEO equity you've built up can be lost.

This article systematically covers the basics of redirects, the differences between 301 and 302, concrete setup methods, SEO implications, and common mistakes to avoid.

What Is a Redirect?

A redirect is a mechanism that automatically forwards users and search engines from one URL to another. Defined as an HTTP status code, it works by the server sending the browser an instruction that says "this page has moved to a different location."

For example, when a user accesses an old page (example.com/old), a redirect automatically sends them to the new page (example.com/new). From the user's perspective, the browser address bar switches instantly, so they barely notice the transfer.

Common scenarios requiring redirects include domain changes, page URL restructuring, HTTP to HTTPS migration, www/non-www normalization, duplicate content canonicalization, and page consolidation.

Types of Redirects: 301 vs. 302

While there are several types of redirects, the two most important for SEO are 301 and 302 redirects. They look the same to users, but the "intent" they communicate to search engines is fundamentally different.

301 Redirect (Permanent)

A 301 redirect indicates that a page has permanently moved to a new URL. When a search engine receives a 301, it replaces the old URL's index with the new URL and transfers link equity (link juice) almost completely. Use this when there are no plans to revert to the original URL.

Google officially recommends 301 redirects as "the best method for ensuring that Google Search and users are directed to the correct page." When in doubt, 301 is the safe choice.

302 Redirect (Temporary)

A 302 redirect indicates that a page has temporarily moved to another URL. Since the assumption is "the original URL will eventually return," search engines keep the old URL in their index.

302 is appropriate for temporary transfers during site maintenance, directing users to time-limited campaign pages, and temporary page swaps during A/B testing.

301 vs. 302 Quick Reference

Use 301 for permanent URL changes, 302 for temporary transfers. With 301, SEO equity transfers quickly to the new URL, which gets indexed. With 302, the old URL remains indexed and equity transfer takes longer. Using 302 for a permanent move risks the new URL never getting indexed and traffic failing to recover.

Today's Google states that both 301 and 302 pass PageRank, but the key difference lies in which URL Google chooses to index and display in search results.

Other Redirect Types (307, 308, Meta Refresh, JavaScript)

Beyond 301 and 302, there are other redirect types worth knowing. 307 Temporary Redirect behaves like 302 but preserves the HTTP method (POST/GET). 308 Permanent Redirect is the strict version of 301, also preserving the HTTP method.

Meta refresh tags and JavaScript redirects are called "client-side redirects" and are processed by the browser. Compared to server-side 301/302, they're less reliably recognized by search engines and can fail, so server-side redirects are recommended for SEO purposes.

How to Set Up Redirects

Setup methods vary by server environment and CMS. Here are three common approaches.

.htaccess (Apache)

For Apache servers, writing redirect rules in the .htaccess file is the most common method. It offers strong performance and flexibility. For simple permanent redirects, use mod_alias (e.g., "Redirect permanent /old https://example.com/new"). For complex conditional logic, use mod_rewrite with regex-based RewriteRules.

Nginx

For Nginx, use the return directive in the config file (e.g., "return 301 https://example.com/new;"). For more complex redirects, use rewrite rules.

WordPress Plugins

WordPress users can use plugins like "Redirection" to set up redirects through a GUI in the admin panel. This is convenient for those unfamiliar with .htaccess editing or managing large numbers of redirects.

SEO Impact of Redirects

Redirects and SEO are closely connected. Proper setup preserves SEO equity, while mistakes can cause significant losses.

A correctly set 301 redirect transfers backlink equity and search rankings to the new URL nearly completely. Google has confirmed that PageRank passes through 301 redirects. For indexing, 301s prompt relatively fast re-indexing of the new URL, while 302s keep the old URL in the index longer.

301 redirects should be maintained for at least one year. After that period, evaluate whether to remove them based on remaining traffic to the old URLs.

Practical Examples Where Redirects Are Needed

For domain migrations due to rebranding, set 301 redirects from all old domain pages to corresponding new pages. For URL normalization (www vs. non-www, HTTP vs. HTTPS), use 301 to unify to a canonical URL and prevent evaluation dilution. For page consolidation or site redesigns, 301 redirects aggregate backlink value from old pages to new ones. For temporary maintenance or campaigns, use 302 to preserve the old URL's index.

Common Redirect Mistakes to Avoid

Redirect chains (A→B→C→D) slow page loads and reduce crawl efficiency. Ideally, complete each redirect in a single hop. Forgetting to update internal links after setting redirects is extremely common and causes unnecessary redirect processing on every visit. Confusing 301 and 302 can prevent new URLs from being indexed or cause test pages to replace live pages in search results. Finally, deceptive redirects that send users to unrelated pages are treated as spam by Google and subject to penalties.

Redirects vs. Canonical Tags

Redirects physically move users to a new page—the old page becomes inaccessible. Canonical tags, on the other hand, keep both pages accessible but tell search engines which URL to treat as authoritative. For e-commerce sites with multiple URLs from sort filters, canonical tags are appropriate. For full page migrations where the old URL is retired, use redirects.

How to Verify Your Redirects

After setting up redirects, always verify they work correctly. The easiest method is checking the Network tab in browser DevTools. Online tools like httpstatus.io or Redirect Checker let you verify redirect types by simply entering a URL. Google Search Console's URL Inspection tool shows how Google interprets your redirects. For large-scale migrations, also use Search Console's Change of Address feature.

Summary

A redirect is a mechanism that automatically forwards users and search engines from one URL to another. Since URL changes are inevitable in website management, understanding and correctly implementing redirects is essential.

The most important point is choosing 301 for permanent moves and 302 for temporary transfers. This choice is a strategic decision that determines which URL appears in search results—getting it wrong can lead to significant traffic loss.

After setup, don't forget related tasks: prevent redirect chains, update internal links, and fix sitemaps. Doing these properly ensures a smooth URL transition while preserving your SEO equity.

Back to blog