On Apache 2.4, which is better for multiple migrated URLs in terms of SEO, 301 redirect or rewrite?
I have ~50 URLs.
Webmasters Stack Exchange is a question and answer site for pro webmasters. It only takes a minute to sign up.Sign up to join this community
mod_rewrite is the module that enables the redirection.
301 redirection should be done if you have a content on page A and not that has been migrated to a different subdomain or another link all-together.
So 301 redirect page A -> page B to indicate this to crawler to get complete seo authority passed from page A to B
If you do choose to do a 301 redirect, you can set headers to stop the browser caching the redirect:
<ifModule mod_expires.c> ExpiresActive On ExpiresDefault "access plus 1 seconds" </ifModule> <ifModule mod_headers.c> <filesMatch "\$"> Header set Cache-Control "store, no-cache, must-revalidate" </filesMatch> </ifModule>
Possibly some adjustment is required on filesMatch depending on your redirects.