Huge httaccess with old 301 redirects. Is it safe to delete all redirects with no traffic in last 2 months?
-
We have a huge httaccess file over several MB which seems to be the cause for slow server response time.
There are lots of 301 redirects related to site migration from 9 months ago where all old URLs were redirected to new URL and also lots of 301 redirects from URL changes accumulated over the last 15 years.
- Is it safe to delete all 301 redirects which did not receive any traffic in last 2 months ?
- Or would you apply another criteria for identifying those 301 that can be safely deleted?
- Any way to get in google analytics or webmaster tools all 301 that received traffic in the last 2 months or any other easy way to identify those, apart from checking the apache log files ?
-
Aleyda, this is super useful , thanks a lot for this excellent advice.
I will still need to do some research on how to best compile a comprehensive list of incoming links, as moz and search console data is still kind of limited for this purpose. -
Hi there,
The best way to identify if it's already safe to eliminate the 301 redirects from a previous Web migration/redesign is to verify if the old pages (you need to have a list of those old URLs) that were redirected in the past:
- Are still crawled and indexed? (You can check the indexation easily in Google with "site:" directly, and then if you identify these old URLs in Google Search Console Search Analytics, by filtering by pages). If so, which pages? Are they also ranking still well for relevant terms? Which ones? Identify why is still ranking instead of the new version of the page: Is the redirect correctly implemented? Going to a new version that is really relevant? The old pages being linked from internal or external sources that are passing high value? What's the historical and trend of crawling activity of those pages over time? Is it going down? (that you can analyze via logs).
- Are still getting traffic? Identify which source: is it organic search traffic? referral from other sites? You can check this by verifying the URLs activity from the old site version in Google Analytics.
- Are still being linked? A must if you're still ranking with these pages and traffic. Verify which sources are still linking to them and which are the one passing the highest value. Make the most to update these links to go to the new URL versions to stop passing value and traffic to the old URLs.
If you verify that these old URLs are not indexed, nor getting visibility or traffic anymore either from organic search or any other traffic source, then it's ok to eliminate the redirects.
Nonetheless, if they are still getting visibility & traffic you will need to keep the redirects, otherwise you will lose those visitors (and also give a bad user experience). The goal in this case would be to ask the previous questions among others to identify the reason why are they still being indexed, linked, etc. and update the relevant links, content, etc. to change this behavior and help Google to catch up with the URLs migrations.
I hope it helps
-
The problem is: It is delaying server response time to 1,5 seconds on average and is increasing significantly server load. We are talking here about more than 19.ooo rows with hundreds of rewrite rules based on URL patterns. So we have a pressing need to take action.
Is there a way to easily identify those URLs that triggered a 301 in the last 2 months? Doing it based on the apache logs seems a bit daunting as I did not find a tool that filters from the apache logs the 301s. Can I get this information from analytics or any other way easily?
-
Hi there,
Does it represent a problem for you, having those redirects in the htaccess?
Personaly, and in a SEO perspective, I will never delete the 301s redirects done in any site.The fact that those pages havent recieved traffic doesn't mean that the old URL might have any links or authority that is now redirected to the actual URL.
Here you have a Q&A question, answered by some experts:
How long should I keep the 301 redirect file - Moz Q&AHope it helps.
GR.
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
-
301 redirect recovery
Hello Please understand that English is poor. I used to run a site called A This time, I am running a site called B. I need to set up a temporary 302 redirect from A to B
Intermediate & Advanced SEO | | jinseok
I accidentally set a 301 redirect Site A has many spam links
For now I have removed the 301 redirect source to B. Will A's spam links affect site B?
For your reference, Site B is putting a lot of effort into SEO. Help me.0 -
Huge organic traffic drom after a perfect domain migration. What to do?
Hi, I already asked the question on different places. But so far nobody could help me.
Intermediate & Advanced SEO | | Dennis1992038
Hope someone can help me out. If possible.
I migrated my website https://vihara.nl to https://meditatieinstituut.nl and lost about 80% traffic (see printscreens). It's over more than a month ago now and there is no sign of getting it back up. Maybe there is nothing to do and
1. I have to be patient and traffic comes back in a few months.
or
2. There is nothing to do and I've lost everything I've build up in the last years. Start over again to get the rankings back.
or maybe, maybe
3. I just forgot something that I still need to do to get the rankings back up. Or there is something I did not think of... This is done: The website is migrated 1 on 1. No changes in content, url, code, etc. Everything is exactly the same as on the previous domain. 301 redirects whole domain (via htaccess a bulk redirect). All the old pages, without exceptions, lead to the exact new page. The new domain is running from CDN (Cloudflare) with the same settings as the previous domain. SSL is installed in the exact same way. Domain migration set up in Search console (working). Uploaded new sitemap (working). Updated internal links. Changed the most important external links (where I could get contact after reaching out) In meanwhile received some new external links and also posted new content Anybody knows what to do? Or do I just have to be more patient and will it come back in a few months by itself? Looking forward to suggetions. Thanks! Gerjan Migratie-Meditatie-Instituut-2048x786.jpg verloop-sinds-de-start-2048x355.jpg0 -
Possible issues with 301 redirecting to a new domain name
Ive got a current domain and after a bit of a rebrand Im considering 301 rediecting the current site to a newly purchased domain. Id redirect each age to idential pages. Am I likely to see any issues. I know this is the recomended way from Google but just wondering how smoothly it works and whether Im likely to see any ranking drops or other problems?
Intermediate & Advanced SEO | | paulfoz16090 -
HTTPS 301 Redirect Question
Hi, I've just migrated our previous site (siteA) to our new url (siteB) and I've setup 301 redirects from the old url (siteA) to the new (siteB). However, the old url operated on https and users who try to go to the old url with https (https://siteA.com) receive a message that the server cannot be reached, while the users who go to http://siteA.com are redirected to siteB. Is there a way to 301 redirect https traffic? Also, from an SEO perspective if the site and all the references on Google search are https://siteA.com does a 301 redirect of http pass the domain authority, etc. or is https required? Thanks.
Intermediate & Advanced SEO | | opstart0 -
What things should I consider if I am doing a 301 redirect on only 1 page/blog post?
I wrote a blog post on one of my websites and it got picked up by reddit and I got a bunch of nice backlinks and now that website got a nice boost overall, and especially that blog post page. I now wish I would have posted the article on a different website of mine. I would prefer if this other site was getting the traffic and the good backlinks that I've acquired. What are the pros and cons if I move the content over to my other website, and 301 redirect just that one article to the article location on my other website? The blog post I wrote almost instantly began ranking for certain terms in Google. Ideally I would like my other website to rank for those terms, but I realize there will be some differences as search engines look at the website as a whole and take many factors into consideration. I know there are tons of case studies and information about moving entire sites etc but I couldn't find much on this. Any advice, questions or comments would be greatly appreciated. Thanks,
Intermediate & Advanced SEO | | bradbowman
Brad0 -
Is it safe to 301 redirect old domain to new domain after a manual unnatural links penalty?
I have recently taken on a client that has been manually penalised for spammy link building by two previous SEOs. Having just read this excellent discussion, http://www.seomoz.org/blog/lifting-a-manual-penalty-given-by-google-personal-experience I am weighing up the odds of whether it's better to cut losses and recommend moving domains. I had thought under these circumstances it was important not to 301 the old domain to the new domain but the author (Lewis Sellers) comments on 3/4/13 that he is aware of forwards having been implemented without transferring the penalty to the new domain. http://www.seomoz.org/blog/lifting-a-manual-penalty-given-by-google-personal-experience#jtc216689 Is it safe to 301? What's the latest thinking?
Intermediate & Advanced SEO | | Ewan.Kennedy0 -
Why would my domain authority drop 2 points in the last week?
My domain authority went from 51 to 49 in the last week. I haven't done any shady link building or really changed anything on the site. It is an ecommerce site so there is new product always added and we also have a full content magazine, so new content is added every monday and tuesday. The only thing that has happened is a press release went out on PRweb about a collaboration we've done.
Intermediate & Advanced SEO | | elubes0 -
Lost all ranking after site-wide 301 redirect
Hi all I did a complete site-wide 310 redirect about 3 weeks ago for a site that had consistently been in Pos 1-5 for my targeted keyword ("low glycemic foods"). I changed the domain from low-glycemic-foods-org to low-glycemic-diet.com because I thought that was a more appropriate title and thru my readings I believed that if I carefully followed the recommended procedures I would quickly regain my SERP. Webmaster tools is showing that I have over 800 inbound links - many from very trustworthy sources including .edu, etc BUT my home page is nowhere to be found for the keyword search "low glycemic diet". My Seomoz onpage SEO score is an "A" Any enlightenment would be much appreciated.
Intermediate & Advanced SEO | | veezer0