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
-
Is it worth keeping a decades-old domain that's merely 301 redirecting to the main domain?
Hi fellow Moz SEOs, We have a bigger client who we just did an SEO Site Audit for, and it was discovered that they have several domain names that are simply 301 redirecting to their main domain name. One of their domains in particular is decades old, and the client is asking if there is any value in keeping it (and the others), or simply leaving them as-is. Considering the domain age, does anyone have any recommendations? Much appreciated, Zack Barton
Intermediate & Advanced SEO | | Zack
Barton Interactive
(833) 442.6853 // office
(408) 910.7750 // mobile
https://bartoninteractive.com0 -
Site Merge Strategy: Choosing Target Pages for 301 Redirects
I am going to be merging two sites. One is a niche site, and it is being merged with the main site. I am going to be doing 301 redirects to the main site. My question is, what is the best way of redirecting section/category pages in order to maximize SEO benefits. I will be redirecting product to product pages. The questions only concerns sections/categories. Option 1: Direct each section/category to the most closely matched category on the main site. For example, vintage-t-shirts would go to vintage-t-shirt on main site. Option 2: Point as many section/category pages to larger category on main site with selected filters. We have filtered navigation on our site. So if you wanted to see vintage t-shirts, you could go to the vintage t-shirt category, OR you could go to t-shirts and select "vintage" under style filter. In the example above, the vintage-t-shirt section from the niche site would point to t-shirts page with vintage filter selected (something like t-shirts/#/?_=1&filter.style=vintage). With option 2, I would be pointing more links to a main category page on the main site. I would likely have that page rank higher, because more links are pointing to it. I may have a better overall user experience, because if the customer decides to browse another style of t-shirt, they can simply unselect the filter and make other selections. Questions: Which of these options is better as far as: (1) SEO, (2) User experience If I go with option 2, the drawback is that the page titles will all be the same (i.e vintage-t-shirts pointing to the page with filter selected would have "t-shirts" as page title instead of a more targeted page with page title "vintage t-shirts." I believe a workaround would be to pull filter values from the URL and append them to the page title. That way page title for URL t-shirts/#/?=1&filter.style=vintage_ would be something like "vintage, t-shirts." Is this the appropriate way to deal with it? Any thoughts, suggestions, shared experiences would be appreciated.
Intermediate & Advanced SEO | | inhouseseo0 -
301 redirects in Wordpress vs. making old posts that you no longer want your audience to see private.
I'm working on Wordpress at the moment changing the content of a page on my website. The page has a lot of educational information and each section is unique. I had to go through and edit each section on google documents and now I'm posting all the new pages and making the old pages private on wordpress. Is this a good idea? I'm worried google will still crawl my private education pages and think these are duplicates since the new pages somewhat resemble the old. Also, should I be 301 redirecting all the old education pages to the corresponding new ones even if they are private on wordpress? I understand that the 301 redirect should only be used if you want the old page to go to a new one. What i don't understand id weather this will still be relevant or work if I've already made the old page private on wordpress. Thank You!
Intermediate & Advanced SEO | | SapphireCo0 -
After 301 redirects average rankings went down a little. Any idea?
We have changed the design of a website, from an oscommerce site to a new responsive website with customized programming. After the 301 redirects we have lost 1 to 2 positions in Google Rankings of the most visited categories. This are real data <colgroup><col span="5" width="80"></colgroup>
Intermediate & Advanced SEO | | teconsite
| page | brand | page | CTR | average position |
| old | fagor | http://www.electrorecambio.es/tienda/fagor-m-41.html | 15% | 6,6 |
| new | fagor | http://www.electrorecambio.es/fagor | 13% | 7,2 |
| old | teka | http://www.electrorecambio.es/tienda/teka-m-39.html | 12% | 7,2 |
| new | teka | http://www.electrorecambio.es/teka | 9% | 8,8 |
| old | balay | http://www.electrorecambio.es/tienda/balay-m-81.html | 12% | 7,4 |
| new | balay | http://www.electrorecambio.es/balay | 11% | 8,6 |
| old | bosch | http://www.electrorecambio.es/tienda/bosch-m-44.html | 10% | 7,4 |
| new | bosch | http://www.electrorecambio.es/bosch | 8% | 11 | Edited: As this table is not shown properly I have added an image For you to check the old page you can see the old urls in the folder tienda2. For example http://www.electrorecambio.es/tienda/bosch-m-44.html can be checked in http://www.electrorecambio.es/tienda2/bosch-m-44.html I would like to know if you see any important information that could justify this drop down in rankings Thanks!!! data-webmaster-tools.jpg1 -
301 Redirect htaccess
Hi Guys, I have a website that has plenty of links with parameters. For example:
Intermediate & Advanced SEO | | UrbanMark
http://www.domainname.co.uk/index.php?app=ecom&ns=catshow&ref=Brandname-Golf-Shorts&sid=201v04gxs2hlozv161tfo43qk98583el I want to place a wildcard redirect on the .htaccess but don't know what exactly code for this. Ideally I want the URLs above to be: http://www.domainname.co.uk/Category/Brandname-Golf-Shorts Any help pls. Thanks,
Brucz0 -
301 redirect rule
Hi there, I have a website that has hundreds of links with a "question mark" at the end of URLs. For example: http://www.domain.com/directory/page.html?
Intermediate & Advanced SEO | | iQandil
http://www.domain.com/directory/another-directory?
http://www.domain.com/directory/yet-another-directory/? I'm want to place a wildcard redirect on the .htaccess file but don't know what exactly to add. Ideally I want the URLs above to be: http://www.domain.com/directory/page.html
http://www.domain.com/directory/another-directory/
http://www.domain.com/directory/yet-another-directory/ Any help is most appreciated. Thanks
Issa0 -
Duplicate titles but redirecting anyway (without redirects set up!!!)
Google has done a crawl of my site and is flagging up duplicate titles on my wordpress site. This appears to be due to the face that some posts are tagged in more than one category. I have just gone to make sure that each post just has one category and add redirects and I've noticed that all the duplicate title issues google has notified me about appear to redirect anyway. For example: http://www.musicliveuk.com/latest-news/live-music-boosts-australian-economy and http://www.musicliveuk.com/live-music/live-music-boosts-australian-economy have duplicate titles apparantly but the 1st url redirects to the 2nd one. I use the redirection plug in but have no redirection set up for that url so I'm a bit confused. And if they're redirecting anyway then why is google flagging up duplicate titles? Any help would be much appreciated.
Intermediate & Advanced SEO | | SamCUK1 -
301 redirect help
Hey guys, I normally work in WordPress and just use a 301 redirect plugin. I bought a site and rather than maintain two similar ones have decided to redirect one to the other. I am having trouble with the .htaccess file. Here is an example. These are two redirects: redirect 301 /category/models/next/2
Intermediate & Advanced SEO | | DanDeceuster
redirect 301 /category/models I want both of these URLs to redirect to the same URL of the new site. However, the /category/models is the only one working. It redirects to the new page just fine. The /category/models/next/2 is redirecting to nearly the same URL on the new site, only it is adding /next/2 to the end and that is bringing up a 404. Why is it adding /next/2 to the new URL? How can I fix this? There are several doing this. Help appreciated!0