Our clients Magento 2 site has lots of obsolete categories. Advice on SEO best practice for setting server level redirects so I can delete them?
-
Our client's Magento website has been running for at least a decade, so has a lot of old legacy categories for Brands they no longer carry.
We're looking to trim down the amount of unnecessary URL Redirects in Magento, so my question is:
Is there a way that is SEO efficient to setup permanent redirects at a server level (nginx) that Google will crawl to allow us at some point to delete the categories and Magento URL Redirects?
If this is a good practice can you at some point then delete the server redirects as google has marked them as permanent?
-
Yes, there is a way to set up permanent redirects at the server level (nginx) that Google will crawl to allow you to delete the categories and Magento URL redirects at some point.
Here are the steps:
-
Open your nginx configuration file.
-
Add the following code to the file:
location /old-category {
redirect 301 /new-category;
}
Note:- Replace /old-category with the old URL of the category and /new-category with the new URL of the category. -
Save the file and restart your nginx server.
Once you have done this, Google will crawl the new URLs and update its index accordingly. You can then delete the old categories and Magento URL redirects.
.
Yes, it is a good practice to set up permanent redirects at the server level. This will ensure that users and search engines are always directed to the correct page, even if you make changes to your website's structure in the future.You can delete the server redirects once Google has indexed the new URLs. However, it is important to wait a few weeks to make sure that Google has had time to crawl and index the new pages.
.
Here are some additional tips for setting up permanent redirects at the server level:- Use the correct HTTP status code. For permanent redirects, you should use the 301 Moved Permanently status code.
- Make sure that the redirects are consistent. All redirects for a particular page should point to the same new URL.
- Test the redirects to make sure that they are working properly.
You can ensure that your website's redirects are SEO efficient and that they will not cause any problems for your users or search engines.
Warm Regards
Rahul Gupta
Suvidit Academy -
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Over Optimised Magento Pages
We are working on a clients Magento site and we've added new copy which has a decent keyword density which is in line with best practice. When we run it through Moz we are getting a Key Word Stuffing alert saying the page has 27 keywords, where we can only see about 11. This is the page https://www.greatbeanbags.com/bean-bag-cushions The client is pushing back saying the page must have already been optimised before as our new copy has triggered the stuffing alert. But my guess is the page was already stuffed but buy some Magento code we can't see. Any ideas? #magento #Keyworddensity
Content Development | | Marketing_Optimist0 -
302 redirects in Magento, trying to fix
Hi all, I'm assigned a site in Magento. After the first craw, we found almost 15k 302 redirects. A sample URL ends with this /stores/store/switch/?SID=qdq9mf1u6afgodo1vtvk0ucdpb&___from_store=default&___store=german&uenc=aHR0cHM6Ly9qdWljeWZsdXRlcy5jb20vP19fX3N0b3JlPWdlcm1hbg%2C%2C And they are currently 302 redirecting to the homepage as well as other main pages and also product pages it seems. Some of these point to account pages where customers log in. Probably best for me to de-index those so no issues there. But I'm worried about the 302 redirects to public pages. The extension we have installed is SEO Suite Ultimate by MageWorx. Does anyone here have experience here specifically and how did you fix it? Thanks, JC
Technical SEO | | LASClients0 -
Why can no tool crawl this site?
I am trying to perform a crawl analysis on a client's website at https://www.bravosolution.com I have tried to crawl it with IIS for SEO, Sreaming Frog and Xenu and not one of them makes it further than the home page of the site. There is nothing I can see in the robots.txt that is blocking these agents. As far as I can see, Google is able to crawl the site although they have noticed a significant drop in organic traffic. Any advise would be very welcome Regards Danny
Technical SEO | | richdan0 -
Feedback for the onpage seo for this site
Hi, Can the seo gurus here, suggest me if any on page factors affect my site? http://www.ridpiles.com/ Recently i have added, the following post to the main home page, http://www.ridpiles.com/2012/02/different-types-of-cures-for-piles/ This page is somewhat different than the title keyword. As the main page titile is "hemorrhoids treatment". The newly created blog post is on "cure for piles" Does this blog post has any affect on the on page factors due to different title? And do i require any changes regarding the on page seo? Will be waiting for your replies.
Technical SEO | | Indexxess0 -
Best Strategy to Rank Wordpress Category
Does anyone some suggestions for best practices when trying to rank categories using Wordpress? Unless you filter it, a category provides a complete list of all posts in that category. I can add a good title and description but am not sure beyond that. Has anyone tried using a sticky post in the category and putting keyword body text in that? Lookin' for ideas.
Technical SEO | | waynekolenchuk1 -
Mobile SEO Tips and Best Practices
Hi, Any advice on approaches for mobile SEO much appreciated. For example, what things do I need to do to optimise a mobile version of a desktop site? E.g. optimise titles, meta description, headings and copy, do I need to submit a mobile sitemap to Google? Do I need to link from the mobile page to the corresponding page on the desktop site and vice versa? Will Googlebot Mobile naturally find the site from the desktop link? What about link building for mobile sites, any thoughts on this, are there specific mobile sites that will link such as directories for a start? Any other tips or resources? Any SEOMoz resources on this? What about the same domain versus the subdomain debate about hosting the mobile site? Any thoughts? Many thanks
Technical SEO | | MarkChambers0 -
How can i redirect a url that has % in it?
Google webmaster tools shows a 400 eroor for an old link that contains a 30% off in it. The problem is the % I would like to 301 redirect this link : http://www.geographics.com/Graduation-Stationery,-35%-OFF-Printable-Certificates-Blank-Gift-Certificates/c1353_1354_1359/index.html to http://www.geographics.com/Graduation-Stationery-Printable-Certificates-Blank-Gift-Certificates/c1353_1354_1359/index.html We do not know how to do this in httaccess. Can you please advise? Thanks a lot! Madlena
Technical SEO | | Madlena0 -
Best practices for country homepage
Hi, What are the SEO best practices for redirecting to the correct language site based on geographic location? Right now, we're using a 302 redirect to point users to the right country landing page. User reaches site: domain.com > Server detects location > 302 redirect to domain.com/french We'd like to optimize the site for all languages, but which country gets the SEO rank for the domain.com? Thanks for your help! Roya
Technical SEO | | roya0