Ever clicked a hyperlink and landed on a “Web page Not Discovered” error? Redirects stop that. They ship guests and serps to the proper web page mechanically. Redirects are essential for each search engine optimization and person expertise. For search engine optimization, they protect hyperlink fairness and preserve your rankings intact. Moreover, it enhances the person expertise, as nobody likes lifeless ends.
Key takeaways
- A redirect mechanically sends customers and serps from one URL to a different, stopping errors like ‘Web page Not Discovered.’
- Redirects are essential for search engine optimization and person expertise, preserving hyperlink fairness and sustaining rankings.
- Various kinds of redirects exist: 301 for everlasting strikes and 302 for momentary ones.
- Keep away from client-side redirects, resembling meta refresh or JavaScript, as they’ll hurt search engine optimization.
- Use Yoast SEO Premium to simply arrange and handle redirects in your website.
What’s a redirect?
A redirect is a technique that mechanically sends customers and serps from one URL to a different. For instance, in case you delete a web page, a redirect can ship guests to a new or associated web page as a substitute of a 404 error.
How redirects work
- A person or search engine requests a URL (e.g., yoursite.com/page-old).
- The server responds with a redirect instruction.
- The browser or search engine follows the redirect to the brand new URL (e.g., yoursite.com/page-new).
Redirects can level to any URL, even on a unique area.
Why redirects matter
Redirects preserve your web site operating easily. With out them, guests hit lifeless ends, hyperlinks break, and serps get misplaced. They’re not simply technical fixes, as a result of they shield your visitors, protect rankings, and ensure customers land the place they’re imagined to. Whether or not you’re transferring a web page, fixing a typo in a URL, or removing old content, redirects be sure that nothing will get left behind.
When to make use of a redirect
Use redirects in these situations:
- Deleted pages: Redirect to the same web page to protect visitors.
- Area modifications: Redirect the previous area to the brand new one.
- HTTP→HTTPS: Redirect insecure URLs to safe ones.
- URL restructuring: Redirect previous URLs to new ones (e.g., /weblog/publish → /articles/publish).
- Non permanent modifications: Use a 302 for A/B exams or upkeep pages.
Forms of redirects
There are varied types of redirects, every serving a definite function. Some are everlasting, some are momentary, and a few it is best to keep away from altogether. Right here’s what it is advisable to know to select the proper one.
Not all redirects work the identical approach. A 301 redirect tells serps a web page has moved completely, whereas a 302 redirect indicators a brief change. Shopper-side redirects, like meta refresh or JavaScript, exist as a result of they’re typically the one possibility on restrictive internet hosting platforms or static websites, however they typically create extra issues than they clear up. Under, we break down every kind, clarify when to make use of it, and talk about its implications on your search engine optimization.
Redirect varieties at a look
| Redirect kind | Use case | When to make use of | Browser influence | search engine optimization influence | search engine optimization threat |
| 301 | Everlasting transfer | Deleted pages, area modifications, HTTP→HTTPS | Cached perpetually | Passes (nearly) all hyperlink fairness | None if used appropriately |
| 302 | Non permanent transfer | A/B testing, upkeep pages | Not cached | Could not cross hyperlink fairness | Can dilute search engine optimization if used long-term |
| 307 | Non permanent transfer (strict) | API calls, momentary content material shifts | Not cached | Serps could ignore | Excessive if misused |
| 308 | Everlasting transfer (strict) | Uncommon; use 301 as a substitute | Cached perpetually | Passes hyperlink fairness | None |
| Meta Refresh | Shopper-side redirect | Keep away from the place doable | Gradual, not cached | Unreliable | Excessive (hurts UX/search engine optimization) |
| JavaScript | Shopper-side redirect | Keep away from the place doable | Gradual, not cached | Unreliable | Excessive (hurts UX/search engine optimization) |
301 redirects: Everlasting strikes
A 301 redirect tells browsers and serps {that a} web page has moved completely. Use it when:
- You delete a web page and need to ship guests to the same one.
- You alter your area identify.
- You turn from HTTP to HTTPS.
search engine optimization influence: 301 redirects cross nearly all hyperlink fairness to the brand new URL. However you should definitely by no means redirect to irrelevant pages, as this could confuse customers and harm search engine optimization. For instance, redirecting a deleted weblog publish about “finest trainers” to your homepage, as a substitute of the same publish about operating gear. This wastes hyperlink fairness and frustrates guests.
Instance HTTP header:
HTTP/1.1 301 Moved Completely
Location: https://example.com/new-page
302 redirects: Non permanent strikes
A 302 redirect tells browsers and serps {that a} transfer is momentary. Use it for:
- A/B testing completely different variations of a web page.
- Non permanent promotions or gross sales pages.
- Upkeep pages.
search engine optimization influence: 302 redirects sometimes don’t cross rating energy like 301s. Google treats them as momentary, so they could not protect search engine optimization worth. For everlasting strikes, at all times use a 301 to make sure hyperlink fairness transfers easily.
Examples of when to make use of a 301 and 302 redirect:
Instance 1: Non permanent out-of-stock product (302): A web-based retailer redirects instance.com/red-sneakers to instance.com/blue-sneakers whereas pink sneakers are restocked. A 302 redirect retains the unique URL alive for future use.
Instance 2: A everlasting area change (301): An organization strikes from old-site.com to new-site.com. A 301 redirect makes certain guests and serps land on the brand new area whereas preserving search engine optimization rankings.
307 and 308 redirects: Strict guidelines
These redirects comply with HTTP guidelines extra strictly than 301 or 302:
- Similar methodology: If a browser sends a POST request, the redirect should additionally use POST.
- Caching:
- 307: By no means cached (momentary).
- 308: At all times cached (everlasting).
When to make use of them:
- 307: For momentary redirects the place you should preserve the identical HTTP methodology (e.g., varieties or API calls).
- 308: Nearly by no means, use a 301 as a substitute.
For many websites: Persist with 301 (everlasting) or 302 (momentary). These are for particular technical circumstances solely.
What to know about client-side redirects:
Shopper-side redirects, resembling meta refresh or JavaScript, execute throughout the browser as a substitute of on the server. They’re hardly ever the proper alternative, however right here’s why you may encounter them:
- Meta refresh: A HTML tag that redirects after a delay (e.g., “You’ll be redirected in 5 seconds…”).
- JavaScript redirects: Code that modifications the URL after the web page masses.
Why must you keep away from them?
- Gradual: The browser should load the web page first, then redirect.
- Unreliable: Serps could ignore them, hurting search engine optimization.
- Dangerous UX: Customers see a flash of the unique web page earlier than redirecting.
- Safety dangers: JavaScript redirects could be exploited for phishing.
When they’re used (regardless of the dangers):
- Shared internet hosting with no server entry.
- Legacy methods or static HTML websites.
- Advert monitoring or A/B testing instruments.
Persist with server-side redirects (301/302) every time doable. In the event you should use a client-side redirect, check it completely and monitor for search engine optimization points.
How redirects influence search engine optimization
Redirects do extra than simply ship customers to a brand new URL. They form how serps crawl, index, and rank your website. A well-planned redirect preserves visitors and rankings. A sloppy one can break each. Right here’s what it is advisable to learn about their influence.
Rating energy
301 redirects cross many of the hyperlink fairness from the previous URL to the brand new one. This helps keep your rankings. 302 redirects could not cross rating energy, particularly if used long-term.
Crawl funds
Too many redirects can decelerate how shortly search engines crawl your website. Keep away from redirect chains (A→B→C) to avoid wasting crawl budget.
Person expertise
Redirects stop 404 errors and preserve customers engaged. A easy redirect expertise can cut back bounce charges.
Widespread redirect errors
Redirects appear easy, however small errors may cause massive issues. Listed below are the most typical errors and tips on how to keep away from them.
Redirect chains
A redirect chain occurs when one URL redirects to a different, which redirects to a different, and so forth. For instance:
old-page → new-page → updated-page → final-page
Why it’s dangerous:
- Slows down the person expertise.
- Wastes crawl funds, as serps could cease following the chain earlier than reaching the ultimate URL.
- Dilutes rating energy with every hop.
The best way to repair it:
- Map previous URLs on to their closing vacation spot.
- Use instruments like Screaming Frog to search out and repair chains.
Redirect loops
A redirect loop sends customers and serps in circles. For instance:
page-A → page-B → page-A → page-B...
Why it’s dangerous:
- Customers see an error web page (e.g., “Too many redirects”).
- Serps can’t entry the content material, so it received’t rank.
The best way to repair it:
- Verify your redirect guidelines for cblonflicts.
- Check redirects with a software like Redirect Path (Chrome extension) or
curl -vwithin the terminal.
Utilizing 302s for everlasting strikes
A 302 redirect is supposed for momentary modifications, however many websites use it for everlasting strikes. For instance:
- Redirecting
old-producttonew-productwith a 302 and leaving it for years.
Why it’s dangerous:
- Serps could not cross hyperlink fairness to the brand new URL.
- The previous URL may keep in search outcomes longer than meant.
The best way to repair it:
- Use a 301 for everlasting strikes.
- In the event you by accident used a 302, change it to a 301 as quickly as doable.
Redirecting to irrelevant pages
Redirecting a web page to unrelated content material confuses customers and serps. For instance:
- Redirecting a weblog publish about “finest trainers” to the homepage or a web page about “kitchen home equipment”.
Why it’s dangerous:
- Customers land on content material they didn’t anticipate, rising bounce charges.
- Serps could ignore the redirect or penalize it for being manipulative.
- Wastes rating energy that would have been handed to a related web page.
The best way to repair it:
- At all times redirect to essentially the most related web page obtainable.
- If no related web page exists, let the previous URL return a 404 or 410 error as a substitute.
Ignoring inner hyperlinks after redirects
After organising a redirect, many websites neglect to replace internal links. For instance:
- Redirecting
old-pagetonew-pagehowever preserving hyperlinks toold-pagewithin the website’s navigation or weblog posts.
Why it’s dangerous:
- Inside hyperlinks to the previous URL pressure customers and serps by way of the redirect, slowing down the expertise.
- Wastes crawl funds and dilutes rating energy.
The best way to repair it:
- Replace all inner hyperlinks to level on to the brand new URL.
- Use a software like Screaming Frog to search out and repair outdated hyperlinks.
Not testing redirects
Assuming redirects work with out testing can result in surprises. For instance:
- Organising a redirect however not checking if it sends customers to the proper place.
- Lacking errors like 404s or redirect loops.
Why it’s dangerous:
- Damaged redirects frustrate customers and harm search engine optimization.
- Serps could drop pages from the index in the event that they can’t entry them.
The best way to repair it:
- Check each redirect manually or with a software.
- Verify Google Search Console for crawl errors after implementing redirects.
Redirecting the whole lot to the homepage
When a web page is deleted, some websites redirect all visitors to the homepage. For instance:
- Redirecting
old-blog-posttoinstance.comas a substitute of a related weblog publish.
Why it’s dangerous:
- Confuses customers who anticipated particular content material.
- Serps might even see this as a “tender 404” and ignore the redirect.
- Wastes rating energy that would have been handed to a related web page.
The best way to repair it:
- Redirect to essentially the most related web page obtainable.
- If no related web page exists, return a 404 or 410 error.
Forgetting to replace sitemaps
After organising redirects, many websites neglect to replace their XML sitemaps. For instance:
- Conserving the previous URL within the sitemap whereas redirecting it to a brand new URL.
Why it’s dangerous:
- Sends combined indicators to serps.
- Wastes crawl funds on outdated URLs.
The best way to repair it:
- Take away previous URLs from the sitemap.
- Add the brand new URLs to assist serps uncover them quicker.
Utilizing redirects for skinny or duplicate content material
Some websites use redirects to cover skinny or duplicate content material. For instance, redirecting a number of low-quality pages to a single high-quality web page to “clear up” the location.
Why it’s dangerous:
- Serps might even see this as manipulative.
- Doesn’t tackle the foundation drawback, which is low-quality content material.
The best way to repair it:
- Enhance or consolidate content material as a substitute of redirecting.
- Use canonical tags if duplicate content material is unavoidable.
Not monitoring redirects over time
Redirects aren’t a set-it-and-forget-it job. For instance:
- Organising a redirect and by no means checking if it’s nonetheless wanted or working.
Why it’s dangerous:
- Redirects can break over time (e.g., as a result of website updates or server modifications).
- Pointless redirects waste crawl funds.
The best way to repair it:
- Audit redirects recurrently (e.g., each 6 months).
- Take away redirects which are not wanted.
The best way to arrange a redirect
Organising redirects isn’t sophisticated, however the steps differ relying in your platform. Under, you’ll discover easy directions for the most typical setups, whether or not you’re utilizing WordPress, Apache, Nginx, or Cloudflare.
Choose the strategy that matches your setup and comply with alongside. If you’re uncertain which to make use of, begin with the platform you’re most snug with.
WordPress (utilizing Yoast search engine optimization Premium)
Yoast SEO Premium makes it straightforward to arrange redirects, particularly whenever you delete or transfer content material. Right here’s tips on how to do it:
Choice 1: Guide redirects
- Go to Yoast search engine optimization → Redirects in your WordPress dashboard.
- Enter the previous URL (the one you need to redirect from).
- Enter the new URL (the one you need to redirect to).
- Choose the redirect kind:
- 301 (Everlasting): For deleted or completely moved pages.
- 302 (Discovered): For brief-term modifications.
- Click on Add Redirect.

Choice 2: Automated redirects when deleting content material
Yoast search engine optimization can create redirects mechanically whenever you delete a publish or web page. Right here’s how:
- Go to Posts or Pages in your WordPress dashboard.
- Discover the publish or web page you need to delete and click on Trash.
- Yoast search engine optimization will present a pop-up asking what you’d love to do with the deleted content material. You’ll see two choices:
- Redirect to a different URL: Enter a brand new URL to ship guests to.
- Return a 410 Content material Deleted header: Inform serps that the web page is completely deleted and ought to be faraway from their index.
- Choose your most well-liked possibility and ensure.
This function saves time and ensures guests land on the proper web page. No guide setup required.
Need assistance with redirects? Attempt Yoast search engine optimization Premium
No code, no trouble. Simply smarter redirects and plenty of different invaluable instruments.
Apache (.htaccess file)
Apache makes use of the .htaccess file to handle redirects. In case your website runs on Apache, that is the only method to set them up. Add the principles beneath to your .htaccess file, making certain it is positioned in the foundation listing of your website.
Add these strains to your .htaccess file:
# 301 Redirect
Redirect 301 /old-page.html /new-page.html
# 302 Redirect
Redirect 302 /temporary-page.html /new-page.html
Nginx (server config)
Nginx handles redirects within the server configuration file. In case your website runs on Nginx, add these guidelines to your server block after which reload the service to use the modifications.
Add this to your server configuration:
# 301 Redirect
server {
hear 80;
server_name instance.com;
return 301 https://instance.com$request_uri;
}
# 302 Redirect
server {
hear 80;
server_name instance.com;
location = /old-page {
return 302 /new-page;
}
}
Cloudflare (web page guidelines)
Cloudflare lets you arrange redirects with out modifying server information. Create a web page rule to ahead visitors from one URL to a different, with out requiring any coding. Merely enter the previous and new URLs, choose the redirect kind, and click on Save.
- Go to Guidelines → Web page Guidelines.
- Enter the previous URL (e.g., instance.com/old-page).
- Choose Forwarding URL and select 301 or 302.
- Enter the brand new URL (e.g., https://example.com/new-page).
Troubleshooting redirects
Redirects don’t at all times work as anticipated. A typo, a cached web page, or a conflicting rule can break them, or worse, create loops that frustrate customers and serps. Under are the most typical points and tips on how to repair them.
If one thing’s not working, begin with the fundamentals: test for errors, check completely, and clear your cache. The options are normally less complicated than they appear.
Why isn’t my redirect working?
- Verify for typos: Make sure the URLs are right.
- Clear your cache: Browsers cache 301 redirects aggressively.
- Check with curl: Run
curl -v http://yoursite.com/old-urlto see the HTTP headers.
Can redirects harm search engine optimization?
Sure, in case you:
- Create redirect chains (
A→B→C) - Use 302s for everlasting strikes
- Redirect to irrelevant pages
How do I discover damaged redirects?
- Use Google Search Console → Protection report.
- Use Screaming Frog to crawl your website for 404s and redirects.
What’s the distinction between a 301 and 308 redirect?
- 301: Most typical for everlasting strikes. Broad browser help.
- 308: Strict everlasting redirect. Hardly ever used. Similar search engine optimization influence as 301.
What’s a proxy redirect?
A proxy redirect retains the URL the identical within the browser however fetches content material from a unique location. Used for load balancing or A/B testing. Keep away from for search engine optimization, as serps could not comply with them.
Conclusion about redirects
Redirects are a easy however highly effective software. A redirect mechanically sends customers and serps from one URL to a different. Because of this, they preserve your website operating easily and protect search engine optimization worth and rating energy. Keep in mind:
- Use 301 redirects for everlasting strikes.
- Use 302 redirects for momentary modifications.
- Keep away from client-side redirects, resembling meta refresh or JavaScript.
Need assistance? Attempt Yoast search engine optimization Premium’s redirect manager.


