How many 301s in htaccess is too many?

Discussion in 'Apache' started by Kerosene, Jul 16, 2007.

  1. #1
    My htaccess file has over one hundred 301 redirects in it (I've just reworked the entire site).
    Will this amount of 301s slow down my site?
     
    Kerosene, Jul 16, 2007 IP
  2. Nintendo

    Nintendo ♬ King of da Wackos ♬

    Messages:
    12,890
    Likes Received:
    1,064
    Best Answers:
    0
    Trophy Points:
    430
    #2
    Post a few examples. You might not even need the complete massive list!!!
     
    Nintendo, Jul 16, 2007 IP
  3. Kerosene

    Kerosene Alpha & Omega™ Staff

    Messages:
    11,366
    Likes Received:
    575
    Best Answers:
    4
    Trophy Points:
    385
    #3
    There's no pattern to the urls (osCommerce > Wordpress), so there's not really any other way to do it...
    e.g
    Redirect 301 /shopping-lipstick-p-102.html http://www.domain.com/lipstick.html
    Redirect 301 /dining-cutlery-p-24.html http://www.domain.com/knives-forks.html
    Redirect 301 /fashion-shoes-p-105.html http://www.domain.com/shoes.html
    Code (markup):
    I've already spent all morning manually entering the 301s into htaccess anyway (what a task!), and it's working nicely.
    I was just concerned that having heaps of 301s might slow down page loads, or might just be "not the done thing".
     
    Kerosene, Jul 16, 2007 IP
  4. Nintendo

    Nintendo ♬ King of da Wackos ♬

    Messages:
    12,890
    Likes Received:
    1,064
    Best Answers:
    0
    Trophy Points:
    430
    #4
    Uggg!!!! As long as it doesn't slow the page loading down, I wouldn't worry about it. I've had around 50 .htaccess lines with no trouble.
     
    Nintendo, Jul 16, 2007 IP
    Mia likes this.