Help wordpress 301 redirect htaccess old

Discussion in 'WordPress' started by seoh2o, Jan 20, 2011.

  1. #1
    I am stuck and need some help with wordpress 301 redirect .htaccess

    Problem i remade an old .asp shopping cart in a custom wordpress. Now I have the wordpress up and running but google,yahoo and bing still have the .asp so now i need to redirect them so i did what i normally do to redirect I took the existing wordpress .htacess

    
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /folder/website/
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /folder/website/index.php [L]
    
    </IfModule>
    
    # END WordPress
    
    Code (markup):
    and then I added the type of redirect i normal add to a .htaccess file but it did not work

    i added the below to above

    redirect 301 /productview.asp?pid=50 http://www.website.com/
    redirect 301 /productview.asp?pid=51 http://www.website.com/contact-us/
    redirect 301 /productview.asp?pid=52 http://www.website.com/product-keyword-sku1/
    redirect 301 /productview.asp?pid=53 http://www.website.com/product-keyword-sku1/
    Code (markup):
    How would i do this correctly

    any help would be appreciated
     
    seoh2o, Jan 20, 2011 IP