Long term plan for a large htaccess file with 301 redirects
-
We setup a pretty large htaccess file in February for a site that involved over 2,000 lines of 301 redirects from old product url's to new ones.
The 'old urls' still get a lot of traffic from product review sites and other pretty good sites which we can't change.
We are now trying to reduce the page load times and we're ticking all of the boxes apart from the size of the htaccess file which seems to be causing a considerable hang on load times. The file is currently 410kb big!
My question is, what should I do in terms of a long terms strategy and has anyone came across a similar problem?
At the moment I am inclined to now remove the 2,000 lines of individual redirects and put in a 'catch all' whereby anything from the old site will go to the new site homepage.
Example code:
RedirectMatch 301 /acatalog/Manbi_Womens_Ear_Muffs.html /manbi-ear-muffs.html
RedirectMatch 301 /acatalog/Manbi_Wrist_Guards.html /manbi-wrist-guards.htmlThere is no consistency between the old urls and the new ones apart from they all sit in the subfolder /acatalog/
-
When I faced a situation with several hundred pages, I decided to to only list the most important ones. I determined the important ones by there presence in Google and the import of the page content.
I first Googled "site:www.example.com" to get a good idea of what was indexed.
I used Analytics to see if any pages were entry pages. If a page gets no hits as an entry page, the 301 redirect is never needed.
I made a list of about 100 redirects, then made the 404 error page a slight variation of my homepage.
Now if you have any pages that have links in, you will need to maintain those redirects.
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
-
Any risks involved in redirecting low quality Infringement website?
Hi all, Recently we have over taken one of the websites (with Trademark Infringement )who been using our domain name in their domain. That website got no traffic or backlinks. Is there any risk involved in redirecting that website to our website? Thanks
Algorithm Updates | | vtmoz0 -
Keyword Targeting - How to Properly Target Two Similar Terms?
Hi all, So I have a question about "best practices" when you have two unique, but highly similar keywords you are targeting. Let's use the examples of "raincoats for women," which gets 9,900 searches a month, and "rain jackets for women," which gets 4,400. I am in the process of selecting keywords for my client's "keyword portfolio" and need to come up with a strategy when faced with two similar keywords that use different terminology. I'm well aware that there should only be one page for "women's raincoats" but there is no doubt in my mind that Google will give preferential treatment to whichever version of the keyword (raincoats/rain jackets) I include in my title tag, meta description, content, etc. I know that the modern philosophy is that Google is sophisticated enough to understand that the two words are essentially synonymous. That said, would you A) only pick "raincoats for women" for your client's keyword portfolio and focus exclusively on that term in your optimizations? b) pick both terms and try to strike an even balance between both in your optimizations? c) pick both terms and only optimize for "raincoats for women" and hope that "rain jackets for women" gets some peripheral benefit from your optimizations via Google's understanding of synonyms? Thanks!
Algorithm Updates | | FPD_NYC0 -
Redirecting Blog WITHOUT .htaccess
Hello Mozzers! I currently have a WordPress blog on a subdomain that I'd like to redirect to a subdirectory. Unfortunately, the CMS that I am on will not allow me implement a rewrite rule because we do not have access to the server (It's on Shopify, which is a fully hosted solution). If we set up a 301 from blog.domain.com to domain.com/blog, will all my link juice be preserved? Or is it better just to keep it on the subdomain for now? I'd like to avoid importing all my content into Shopify's native blog, if I can, just because we may be moving to another CMS shortly. Thank you in advance! -Alima Team
Algorithm Updates | | okatieo0 -
To link or redirect? That is the question.
I have a site that I don't really use any longer but still has some okay rankings. I'd like to take advantage of the links point to that site. Is it better to redirect that site to my new one or to just place a link on the homepage pointing to my new site?
Algorithm Updates | | JCurrier0 -
How to optimise a news site? - tomorrows chip paper terms
Are there any specific tips to how to gain traffic from very short lived search terms? If the site you are SEO/SEMing want to go for search related to things like the latest celebrity breakup, or a fashion event that lasts less than a week The onsite stuff seems pretty good as SEO onsite tools generally give it an A grade Is it just a case of doing the same stuff as normal, but faster? 😉
Algorithm Updates | | Fammy0 -
Is it OK to 301 redirect the index page to a search engine friendly url
Is it OK to 301 redirect the index page to a search engine friendly url.
Algorithm Updates | | WinningInch0 -
Domain Deindexed because of Redirect
I think this is an interesting topic to discuss though I'm looking for answers too. One of my well performing domain deindexed by Google today. Reason: Redirect from a 9 year old Deindexed domain (Must be penalysed) I believe this is done by one of my competitor. What you people suggest me to do now? Don't you think if this is the way Google treat the redirects after Penguin anybody can use this technique to harm their competitors?
Algorithm Updates | | HeIsHere0