301 Redirects: Switching non-wordpress site to wordpress

Discussion in 'Apache' started by Sg4, Jul 22, 2008.

  1. #1
    Hi,

    We just switched over a non-wordpress site to wordpress and we are attempting to use the .htaccess to map and 301 redirect the old URLs. This does not seem to be working. We're using:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress
    
    
    Redirect 301 /oldsite/Info.aspx?pid=26 http://www.example.com/new-website-page/
    Code (markup):

    Please advise
     
    Sg4, Jul 22, 2008 IP
  2. Ricky

    Ricky Active Member

    Messages:
    49
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    91
    #2
    I guess you need to put those redirect line ie. for old one in separate .htaccess under folder /oldsite/ , ie. the place where actually Info.aspx?pid=26 pages exists and it is in /oldsite/

    Try out and let us know !!
     
    Ricky, Jul 22, 2008 IP
  3. Fortumania

    Fortumania Active Member

    Messages:
    321
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    58
    #3
    Dear visitors

    How do I make redirect 301 for .aspx pages ???

    I would like to redirect few URLs (homepage) to the main URL.

    My homepage is "http://www.________.com/" and I would like to redirect
    (301) the following pages:

    "http://www.________.com"
    "http://________.com"
    "http://________.com/"
    "www.________.com"
    "www.________.com/"
    "www.________.com/default.aspx"

    Right now the default URL in my CMS is "www.________.com/default.aspx",
    but the homepage is "http://www.________.com/"


    By the way, Google webmaster tool thinks that I have 2 pages with
    duplicate Meta tags - the "/" page and the "/default.aspx" page.


    Thanks
    Fortumania
     
    Fortumania, Aug 12, 2008 IP