301 Redirect with Wordpress problem

Discussion in 'Apache' started by Chandler Mike, Feb 19, 2008.

  1. #1
    Hey guys,

    I'm new to all this and I tried to read your FAQ and it was HELPFUL, but I can't figure it out...

    I'm trying to forward a SELECT group of blog posts from one Wordpress blog to a new one. My .htaccess file originally looks like this:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress

    Now, I want to make it so posts from /2007/10/blogpostname

    All go to the same place on the new site, I just don't want anything from /2007/9/ or earlier going over.


    So what I tried was adding this:

    <IfModule mod_rewrite.c>
    Options +FollowSymlinks
    RewriteEngine on
    RewriteBase /
    RewriteRule ^2007/10/(.*)/$ http://www.domain.com/2007/10/$1/ [301, L]
    </IfModule>


    That give me a nice Internal Server error 500 or whatever.

    What am I doing wrong here? The big thing is that a buddy of mine and I are merging sites, so his stuff is coming over too...I don't think that will mess with anything as our Blog Post titles are pretty different, but either way, we need to get this working...

    I appreciate any help you can give us!

    Mike
     
    Chandler Mike, Feb 19, 2008 IP
  2. kulinar

    kulinar Member

    Messages:
    45
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #2
    Try this one:

    After
     # 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):
    Place
    RedirectMatch 301 ^/2007/10/(.*)$ http://newdomain.com/2007/10/$1
    Code (markup):
     
    kulinar, Feb 25, 2008 IP