301 redirect in addition to Wordpress's automatic .htaccess

Discussion in 'Apache' started by Breakaway11, Jul 3, 2008.

  1. #1
    When i install a wordpress blog, it automatically creates an htaccess file and redirects it from the www. version to the non-www. version. In addition to that, I want to add about 10 old page to new page redirects... How would I do that?

    The current redirect is:

    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^www.wiifitaccessories.com
    RewriteRule (.*) http://wiifitaccessories.com/$1 [R=301,L]
    # 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):
    Thanks for your help.
     
    Breakaway11, Jul 3, 2008 IP
  2. innoxed

    innoxed Peon

    Messages:
    65
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    put your 301 redirect on top, simply?

    RewriteRule ^oldpage\.html$ /newpage.html [L,R=301]

    am I missing something?
     
    innoxed, Jul 4, 2008 IP