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
-
Adding non-important folders to disallow in robots.txt file
Hi all, If we have many non-important folders like /category/ in blog.....these will multiply the links. These are strictly for users who access very rarely but not for bots. Can we add such to disallow list in robots to stop link juice passing from them, so internal linking will me minimised to an extent. Can we add any such paths or pages in disallow list? Is this going to work pure technical or any penalty? Thanks, Satish
Algorithm Updates | | vtmoz0 -
Canonical redirect?
Can a canonical URL redirect? I'm doing country specific urls with the www. redirecting to the country (i.e. if you go to www.domain.com you'll redirect to fr.domain.com in france). If the canonical is www. then all the spiders will go to the correct place but I don't know if search engines recommend against a canonical that redirects.
Algorithm Updates | | mattdinbrooklyn0 -
Does Google ACTUALLY ding you for having long Meta Titles? Or do studies just suggest a lower CTR?
I do SEO in an agency and have many clients. I always get the question, "Will that hurt my SEO?". When it comes to Meta Title and even Meta Description Length, I understand Google will truncate it which may result in a lower CTR, but does it actually hurt your ranking? I see in many cases Google will find keywords within a long meta description and display those and then in other cases it will simply truncate it. Is Google doing whatever they want willy-nilly or is there data behind this? Thank you!
Algorithm Updates | | Bevelwise0 -
Same search term shows #1 on Bing but #140 on Google?
Hi, I am using the search term of my website domain i.e. "Series Digital" on both Bing and Google. Bing shows my website as the top most link. But on Google, my website appears on page 14!! Why is this happening when I am using the string within the " "?
Algorithm Updates | | Cloudguru990 -
301 Or Canonical, Which one is more effective for eCommerce Website ?
I have my own eCommerce website. I want to avoid duplicate category pages so which method is more useful 301 redirection or Canonical url?
Algorithm Updates | | yuvastyle0 -
Google Panda - large domain benefits
Hi, A bit of a general question, but has anyone noticed a improvement in rankings for large domains - ie well known, large sites such as Tesco, Amazon? From what I've seen, the latest Panda update seems to favour the larger sites, as opposed to smaller, niche sites. Just wondered if anyone else has noticed this too?Thanks
Algorithm Updates | | Digirank0 -
How long does it take for a new website to start showing in the SERP'S
I launched my website about 6 weeks ago. It was indexed fairly quickly. But it is not showing up in the Google SERP. I did do the on page SEO and followed the best practise's for my website. I have also been checking webmaster tools and it tells me that there is no errors with my site. I also ran it through the seomoz on page seo analyzer and again no real big issues. According to seomoz I had 1 duplicate content issue with my blog posts, which i corrected. I understand it takes some time, but any ideas of how much time? And f.y.i it's a Canadian website. So it should be a lot easier to rank as well. Could my site be caught in the Google 'sandbox effect' ? Any thoughts on this would be greatly appreciated.
Algorithm Updates | | CurtCarroll0 -
No longer ranking for non local local terms
Anyone seen this lately; I have a client who is in the food catering business and for the seo we target a lot of local keywords (event catering Hampshire, for example). In the past couple of weeks search engine traffic to the website seems to have dropped by about 60%. However, rankings do not seem to have dropped. What I have noticed is that up until a couple of months back, the client would be ranking first page in the Google local and also have a listing in the 'normal' serps. It appears that the non local pages have vanished. Checking a couple of their competitors and it seems the same there. This has led me to start to believe that Google are now only giving a local position or a normal position on the first page and not both, as previously. The non local pages are sitll listed but seem to have dropped way back to the 4th or 5th page when previously they would have been first page. It would of course help if the client were to give me access to the webmaster tools!!! Hate it when client's only give you half the information you need and then expect you to tell them what's up!! Anyone seem this? Thanks, Carl
Algorithm Updates | | ccgale0