Adobe Experience Manager(AEM) SEO best practices suggest use of 301 or 302 redirect in AEM.
Difference Between 301 and 302 Redirect
Status code 301 means that this webpage no longer exists, the engine search for location header in response pick the new URL and replace the indexed URL with the new one and also transfer page rank.
Note:- In case of 301 redirect browser cache the mapping of new url with old url.
Status code 302 tells the crawlers or browser to redirect this webpage temporarily to the new location and crawl both of the pages. The old webpage URL still exists in the search engine database and when we make hit to new URL , it always attempts to request both the old location and new location and crawl it.
Note:- In case of 302 redirect browser does not maintain any mapping or cache. So, server receives hit for both the url’s.
Difference Between 301 and 302 Redirect
Status code 301 means that this webpage no longer exists, the engine search for location header in response pick the new URL and replace the indexed URL with the new one and also transfer page rank.
Note:- In case of 301 redirect browser cache the mapping of new url with old url.
Status code 302 tells the crawlers or browser to redirect this webpage temporarily to the new location and crawl both of the pages. The old webpage URL still exists in the search engine database and when we make hit to new URL , it always attempts to request both the old location and new location and crawl it.
Note:- In case of 302 redirect browser does not maintain any mapping or cache. So, server receives hit for both the url’s.