301 and 302 redirects:
configure and check
Move a page to a new URL and check the entire route: choosing a status code, configuring the server and CMS, finding chains and monitoring after publication.

Set up the redirect.
Check the route.
A working redirect reaches the right page without unnecessary hops. This guide covers configuration, testing tools and the evidence to request from your developer.
A redirect sends a request to another URL
A visitor opens an old link. The server responds with a redirect status and supplies the new URL in the Location header. The browser requests that URL and the visitor sees the final page. For example, instead of /uslugi-old/ the browser opens /services/. Test the redirect as a complete route: the starting URL, every intermediate hop and the final document.
Simply seeing a website open proves little. There may have been four redirects before reaching it; the final page could be irrelevant, blocked from indexing or showing an error message with status 200. Check both the technical response and the content.
A redirect differs from canonical. A redirect takes the visitor to a new URL. With canonical, the original page usually remains accessible while the search engine is told which version is preferred. Choose according to the task: retire the old route or keep several versions accessible.
/old-service/ to /services/audit/. The service itself is unchanged and the new URL is permanent. The domain example.com and the URLs below are examples. Replace them with your own and test the rules in a staging environment before use.301 and 302 describe different kinds of move
301 means a permanent move; 302 means a temporary redirect. If the old page will no longer be the main home of the content, a permanent redirect is usually appropriate. If the old URL should resume normal service after a limited experiment, consider a temporary one. Choose according to the product’s actual behaviour, not hopes of a quick ranking boost.
| Situation | Response | What to check |
|---|---|---|
| Content has moved permanently | 301 or 308 | The new URL opens the corresponding document |
| Visitors are temporarily sent to an alternative | 302 or 307 | There is a reason, a time limit and a rollback plan |
| Show a result in a separate request after a form submission | 303 may be appropriate | Form behaviour and refreshing the result page |
| Page removed without a suitable replacement | 404 or 410 | Correct response and a useful error page |
| Content remains at its original URL | 200 | No unnecessary redirect |
307 and 308 have a key development distinction: they preserve the request method and body. With 301 and 302, handling of non-GET requests may vary between clients. Rules for forms, payments and APIs therefore cannot be chosen from an SEO table alone. The behaviour is compared in the MDN reference.
For Google, a permanent redirect signals that the new URL should be canonical; a temporary one does not communicate that intention. This neither guarantees an immediate URL change in search results nor means that “302 is never indexed”. See the Google documentation on redirects.
Choose a destination for every old URL first
Before configuration, create a URL mapping table. Build the list from the current site, a CMS export, the old sitemap, analytics landing pages and known external links. During migration, check more than menu items: visitors may arrive directly at old articles, product pages and PDFs.
For each row, record the original URL, reason for change, final URL, expected status and owner. Keep the observed test result separately. This distinguishes an untested redirect from a missing one and prevents an accidental destination from becoming “approved” after publication.
| Old URL | Decision | Reason |
|---|---|---|
/old-service/ | 301 → /services/audit/ | The same service has a new URL |
/guide-v1/ | 301 → /guide/ | The new content fully replaces the old |
/retired-offer/ | 404 or 410 | Offer discontinued with no suitable replacement |
/catalog/?filter=blue | Decide separately | The filter changes content; do not remove it automatically |
Do not send every missing URL to the homepage. Someone looking for a particular guide will not find an equivalent on the company homepage. Google warns that irrelevant bulk redirects may be treated as soft 404 errors in its site migration guide.
Choose a tool suited to the volume
For one link, an HTTP-response checker and a browser are enough. For tens or thousands of URLs, a crawler with export is more convenient. Search consoles come next: they show how a search engine processes changes and do not replace checking the server response.
- httpstatus.io — view responses and redirect hops for a list of URLs.
- Network in Chrome DevTools — inspect browser requests and the Location header.
- Screaming Frog SEO Spider — check routes in bulk, find internal-link sources and export errors.
- Google Search Console and Yandex Webmaster — monitor crawling and indexing after publication.
Keep one results log for all tools. If the browser and an external checker see different routes, save both with the date, starting URL and request conditions. Caching, region, authentication or security-service rules may explain the difference. Investigate it rather than picking the more convenient response.
Inspect the status, Location and destination page
- Open httpstatus.io and paste the complete old URL, including its protocol.
- Start the test with Check status.
- Expand the result and inspect every hop up to the final response.
- Compare the final URL with the migration map.
- Open the destination page and confirm it contains the intended content.
- Repeat for important variants: with and without the trailing slash, and with valid parameters.
In our example, the old URL should return 301 and point directly to /services/audit/, which returns 200 with the service content. A final 200 alone is insufficient: it could be the homepage, an empty template or a “page not found” message.
Replace “redirect works” with a verifiable statement: “24 September, old URL → 301 → approved new URL → 200; content and parameters checked.” If the service cannot connect, record that separately for investigation. It confirms neither a working redirect nor the absence of one.
Network reveals what the address bar hides
Open Chrome DevTools and the Network panel. Enable Preserve log so navigation does not clear the log, and Disable cache while DevTools is open for testing. Enter the starting URL again. Select the document request and inspect Status Code and Response Headers → Location. Panel names and features are explained in the official Chrome guide.
Start with the old URL. Refreshing an already-open destination only tests that destination. The saved log should show the original request and subsequent hops. Restore normal caching when finished.
If the old document returns 200 and the address changes later, check for a client-side redirect: JavaScript, meta refresh or a site-builder setting. This differs from an HTTP 301 response. Browsers may also apply cached rules, so compare changes with a fresh independent HTTP check.
An exact single-page rule in .htaccess
This example requires Apache with mod_alias available and directives permitted in .htaccess. Back up the current configuration and check whether the CMS or hosting panel manages this file. Nginx does not use this file by itself.
RedirectMatch 301 ^/old-service/$ https://example.com/services/audit/
The characters ^ and $ limit the match to the complete path. The rule must not accidentally match /old-service/price/. A URL without the trailing slash also falls outside this exact pattern; decide its intended route separately. Redirect and RedirectMatch behaviour is described in the Apache documentation.
After changing the rule, test the original URL, destination, homepage and a neighbouring URL it must not affect. Repeat with a parameter. Broader rules or another module’s directives may alter the outcome; testing one line apart from the full configuration does not establish that the site is correct.
Redirect using an exact location
Inside the appropriate server block, you can match the path exactly. This example preserves the original request’s query string:
location = /old-service/ {
return 301 https://example.com/services/audit/$is_args$args;
}
The destination is fixed here, while $is_args$args appends parameters if any exist. This is useful when their meaning still applies. If old parameters controlled filters, language or content, decide separately: do not copy or discard them merely to shorten the URL. The syntax of return is described in the Nginx documentation.
The administrator validates the configuration before applying it, then updates the running server and repeats the HTTP check externally. If a CDN or another proxy sits in front, confirm the observed response comes from the new rule. HTTP/HTTPS and www rules must be coordinated at host level; copying one location does not automatically handle every domain variant.
Use one clearly defined place to manage rules
In WordPress, individual redirects can be managed through a supported CMS tool. For example, open Redirects and the add-rule form in the Redirection plugin. In Source URL, enter /old-service/ and the complete approved destination in Target URL. Check status 301 and the matching options, save the rule, then test the old URL while logged out. The steps are described in the Redirection documentation.
For one exact URL, do not enable regular expressions unnecessarily. Check trailing slashes, case and query parameters. Before installing another plugin, see whether your existing SEO module already manages redirects. Two independent rule sets make conflicts harder to diagnose.
In Tilda, go to Site Settings → SEO → 301 Redirects and enter the old and new paths without the domain. According to the Tilda guide, this works within one domain and only for old pages that no longer exist. The T223 redirect block is not equivalent to a server-side 301. The block documentation explains its setup; the original page returns HTTP 200 with this client-side mechanism.
In another CMS, first identify the configuration layer: platform panel, module, web server or application. Assign a rule owner and keep an export. After a theme update or a change of contractor, it should remain clear where the migration map is stored and how to repeat the checks.
Shorten the route to the agreed destination
A chain occurs when A redirects to B, then B to C. A loop returns to a previously visited URL: A → B → A. The first adds hops; the second can produce a too-many-redirects error. Find the cause before changing an individual step.
Example: three years ago, a page moved from /audit-old/ to /audit/ and now to /services/audit/. Both old URLs should lead straight to the current content. Update menu links, article links and the sitemap to the final URL so your own site does not send visitors along outdated routes.
For bulk testing in Screaming Frog, switch to Mode → List and upload the starting URLs. Follow the migration audit guide: enable following redirects to the final destination, run the crawl and export Reports → Redirects → All Redirects. Compare starting and final URLs, status codes, hop counts and loop flags with your mapping table.
To find internal links to old URLs, run a normal site crawl and inspect the Redirection (3XX) filter in Response Codes together with Inlinks. The process is shown in the bulk redirect-checking guide. The free mode has a volume limit; account for list size and your version’s capabilities before starting.
Diagnose the error from the observed result
| Observation | Likely area to investigate | Next step |
|---|---|---|
| Old URL returns 200 | Rule did not match or another handler ran | Check path, slash, case and configuration layer |
| Redirect ends in 404 | Wrong or unpublished destination | Open the target directly and fix the map |
| The same route repeats | Conflict between CMS, server or proxy | Find both rules that send the request back |
| Campaign tags disappeared | Query string rewriting | Compare Location at each hop and check analytics |
| Browser and checker disagree | Cache or request-processing conditions | Save both routes and investigate the conditions |
| Status 200 but the intended content is missing | Unsuitable destination or soft 404 | Check content, not just status |
In the developer task, state the exact starting URL, expected destination, observed response sequence and date. For example: “/old-service/ should redirect directly with 301 to /services/audit/. It currently goes first to /services/, then to the homepage. Fix the rule and check the neighbouring /old-service/price/, which must not be redirected.”
After fixing, retest the same URL set. Add control pages that must remain unredirected. This exposes overly broad regular expressions: the repaired example may work while neighbouring pages no longer do.
Separate the technical result from search-engine processing
You can test the HTTP route immediately after publication. Search data needs a new crawl and processing before it updates. An old URL still appearing right after a change does not prove the rule is broken; nor can a missing new page automatically be blamed solely on the redirect.
Check that the new URL is accessible, has no unwanted indexing restrictions and declares the correct canonical. Update internal links and the Sitemap. Old URLs must remain crawlable so they can return the redirect; blocking them in robots.txt prevents search crawlers from checking the move.
Google and Yandex have their own processing rules. Yandex, for example, distinguishes redirects within one host from those between hosts and explains regional-version behaviour in its redirect help page. Do not assume that one engine’s treatment of a particular URL in results applies to another.
In the monitoring log, keep the change date, last crawl date and status of every important new URL. Step-by-step console instructions are in the indexing-check guide. Compare impressions, clicks and enquiries across the old and new URL groups so that a normal address change in reports does not look like the loss of all results.
What to receive from the developer after setup
- A map of starting and final URLs explaining exceptions.
- A description of where rules are stored and how to restore them.
- An exported check of all agreed starting URLs.
- Confirmation of destination status codes and content.
- Checks of parameters, trailing slashes and important domain variants.
- Confirmation that there are no loops or unnecessary intermediate hops.
- Updated internal links, canonical declarations and sitemap.
- Tests of forms and other actions if redirects affect them.
- A separate list of search statuses still awaiting an update.
Include these results in the website acceptance review. The same URL list should make the work repeatably testable, beyond a screenshot of one successful redirect. Coordinate major structural changes with an SEO specialist; server and CMS configuration belongs to technical maintenance.
Schedule a check after changing CMS, updating CDN rules or moving another section. Keep the redirect map in step with the site’s URLs; otherwise, later moves gradually turn direct routes into chains.
Frequently asked questions about redirects
Should every 302 be changed to 301?
No. First establish the rule’s purpose. A 302 can be correct for a temporary scenario. If the content has moved permanently, review the need for a permanent redirect and verify its destination.
How long should old redirects remain?
For a site move, Google recommends keeping them for at least a year. For visitors, retaining useful routes longer makes sense while old URLs still receive links. See the migration guide. Keep the old domain operational and its certificate valid too.
Does a redirect guarantee every ranking will be preserved?
No. It connects URLs but does not replace content, site availability or a correctly executed migration. Changes to structure, text and other conditions can affect outcomes. Check the technical implementation and search data separately.
Can a missing product redirect to its category?
It depends on whether the category meets the original need. A blanket rule for removed products may send visitors to unsuitable pages. Sometimes it is better to keep a useful product page with information; when permanently removing it without replacement, return 404 or 410.
Why does the browser still redirect after the rule is removed?
Browser cache, a CDN or another server rule may be responsible. Compare a fresh HTTP check with the Network log. Removing one plugin entry does not prove that redirects are absent at every other layer.
Is a JavaScript redirect enough?
For a normal permanent move, prefer a server response. Client-side navigation requires page processing and can behave differently between clients. If the platform offers no other option, record that limitation and test the actual response, destination availability and search-engine handling.
WE’LL AUDIT REDIRECTS
AND PAGE MIGRATIONS
We’ll map URLs, find chains and conflicting rules, and check server responses and destination pages.