Do URLs have to stay the same before and after a redirect?

ProcrustesPR

No. The supplied public discussion states that a redirect’s source and destination URLs do not need to use the same domain, path, or file extension. For example, eastservicea.com/widgets.php can redirect to statewideservicea.com/widgets. However, whether a redirect is possible and how to name a URL to benefit search rankings are separate questions. Ranking advice should not be treated as a requirement for a redirect.

ProcrustesPRProcrustesPRHow should you balance CNAME convenience and performance?

Old URLs need destinations, but the new URLs do not have to look the same

This website merger example involves changes to both the domain and the path. The person asking wanted to know whether widgets.php had to remain unchanged after the move to the new website. The respondent said it did not and considered changing it to widgets acceptable. In this example:

  • The domains can differ: The URL changes from eastservicea.com to statewideservicea.com; it does not have to stay on the original domain.
  • The path can change: The source is /widgets.php and the destination is /widgets; they do not need to match character for character.
  • The file extension can be removed: The respondent still considers the redirect acceptable without .php.

The point is to decide where the old URL should redirect, not to make the new URL copy it exactly. This exchange describes the changes above as possible, but provides neither setup instructions nor evidence of the website merger’s results.

Keeping similar wording is ranking advice, not a requirement for a redirect

The same respondent also recommends keeping the old and new URLs as similar as possible. They believe URLs are a ranking factor and want the page to continue ranking for the same keywords. They consider changing widgets.php to widgets acceptable, but believe changing it to abracadabra would not help rankings.

This is search engine optimization advice from a public discussion, not an official search engine rule or a guarantee of rankings. Even if a URL name is considered unhelpful for rankings, that does not make a redirect technically impossible. As for whether similar naming can preserve rankings, the supplied discussion offers only the respondent’s reasoning, with no verified results to establish a conclusion.

ProcrustesPRProcrustesPRShould you use a 302 redirect to a temporary alias for the new server during a DNS update?

Redirect URLs: perspectives from across the web

Can the same base path redirect to different pages depending on its parameters?

Yes, according to the description in the supplied affiliate URL example, though no actual configuration details or verification results are provided. The person asking says the same base path redirects to different destinations depending on the value of the url parameter. To understand where this type of URL redirects, you therefore need to look beyond the base path to the parameters and their corresponding destinations.

If the destination varies with the parameters, must you use a 302 rather than a 301?

The supplied discussion does not establish that a destination varying with the parameters requires a 302. In the affiliate URL example, the person asking chose a 302 for that reason and asked whether the choice was correct. This was their reasoning, not an established rule. The discussion also mentions that the marketing department recommended a 301, but does not provide enough information to determine which is appropriate for this case.

ProcrustesPRHow does HSTS protect websites and subdomains?

References

  1. Combine websites without hurting SEOwebmasters.stackexchange.com — Source used in the article above.
  2. Combine websites without hurting SEOwebmasters.stackexchange.com — Source used in the article above.
  3. 301 vs 302 redirect for ?url=URLwebmasters.stackexchange.com — Discusses: Can the same base path redirect to different pages depending on its parameters?; If the destination varies with the parameters, must you use a 302 rather than a 301?

Related articles

How should you balance CNAME convenience and performance?Should you use a 302 redirect to a temporary alias for the new server during a DNS update?How does HSTS protect websites and subdomains?How do SSL certificates protect websites, and why are they needed?Should a Tumblr blog use the platform’s domain or the company’s domain?What types of URLs are there, and what are they used for?When should you use relative or absolute paths in WordPress?What are www subdomains and relative links used for?
ProcrustesPR
ProcrustesPR