htaccess 301 redirects with site transfer

Discussion in 'WordPress' started by sixrfan, Feb 2, 2011.

  1. #1
    i recently changed my shopping cart and moved from a non wordpress shopping cart software to wordpress + shopp plugin.

    originally, links to different categories of my site looked like this:
    http://www.pooltees.com/products.php?cat=27 or
    http://www.pooltees.com/products.php?cat=28

    not they look like this:
    http://www.pooltees.com/shop/category/mens/ or
    http://www.pooltees.com/shop/category/womens/

    I'm trying to get my htaccess file to correctly redirect visitors to the new page when they find the old link in a google search. Installed these two lines of code:
    RewriteCond %{QUERY_STRING} ^products.php?cat=27$ [NC]
    RewriteRule ^/products.php$ http://pooltees.com/shop/category/chicks/ [R=301,L]
    Code (markup):
    into the htaccess file, but that doesnt seem to have worked. here's a look at the entirety of the htaccess file:

    
    <IfModule mod_rewrite.c>
    RewriteEngine On
    # Redirect my old pages
    RewriteCond %{QUERY_STRING} ^products.php?cat=27$ [NC]
    RewriteRule ^/products.php$ /shop/category/chicks/ [R=301,L]
    
    # Redirect any of my old images
    RewriteRule ^.*shop/images/(\d+)/?\??(.*)$ /wp-content/plugins/shopp/core/image.php?siid=$1&$2 [QSA,L]
    </IfModule>
    
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress
    
    Code (markup):
    what am i doing wrong? please advise. thanks in advance.
     
    sixrfan, Feb 2, 2011 IP
  2. Dodger

    Dodger Peon

    Messages:
    1,494
    Likes Received:
    60
    Best Answers:
    0
    Trophy Points:
    0
    #2
    When it comes to rewrites, I don't know diddly. But I do love the Shopp plugin and have a couple of licenses.

    Did you try the Shopp forum yet? I am sure they may have a resolution for you already.

    Also, how many categories do you need to rewrite? If there are not too many, then a cat to cat rewrite rule can be applied.
     
    Dodger, Feb 2, 2011 IP
  3. sixrfan

    sixrfan Well-Known Member

    Messages:
    354
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    101
    #3
    I have many categories and many pages I need to redirect. I looked through the shopp forums but they weren't any help.

    Can someone please advise? Thanks.
     
    sixrfan, Feb 2, 2011 IP
  4. sixrfan

    sixrfan Well-Known Member

    Messages:
    354
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    101
    #4
    well i found a great wordpress plugin that does this, called Simple 301 Redirects.
     
    sixrfan, Feb 3, 2011 IP
  5. tommytx

    tommytx Well-Known Member

    Messages:
    97
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    123
    #5
    Sixrfan,

    did you get a solution... if not pm me, and I can fix you up... I specialize in entire site transfer with up to 50,000 pages indexed especially real estate and my simple program implements 301 on the fly but only the pages that are hit on the old site.. and what you are doing is real simple based on 301ing an entire site... and it only takes 3 minutes to implement... and bingo all 50,000 old pages are forwarded with 301 to the new site... and not only that they land on indentical or similar pages on the new sites.

    And best of all its FREE.... I do everything I do for free... as a hobby.... sounds like a scam huh? Well I have a ton of happy campers folllowing me who will be glad to vouch for me.. I am real!

    I love domain and site transfers... and I know how to make the juice follow you to the new site.... you will see forums like Real Estate Webmasters recommend that you simply 301 your main pages and do a blanket 301 on the rest of you page... wow... talk about the kiss of death... guess what happens when you 301 50,000 pages to your index page on the old site... you piss google off royally.... google demands that all pages be forwarded individually to the same or a very similar page on the new site..

    So yours will be easy... simply 301ing your old page to the new pages is a big piece of cake...
     
    tommytx, Nov 26, 2011 IP