simple .htaccess 301 redirect problem

Discussion in 'Apache' started by itsallwhite, May 19, 2009.

  1. #1
    Hi,

    I've just moved a website of mine on to the wordpress and want to redirect a couple of pages that had PR.

    I'm new to this but tried doing a 301 redirect using the .htaccess file but it doesnt seem to work.

    The old URL is http://greenteasupplier.com/Benefits%20of%20Green%20Tea.php

    and I want to redirect to
    http://greenteasupplier.com/green-tea-benefits-pure-green-tea.

    My .htaccess file is below

    # 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 /Benefits%20of%20Green%20Tea.php http://greenteasupplier.com/green-tea-benefits
    Code (markup):
    Is there something wrong with this? It doesnt seem to work.

    Thanks alot for your help
     
    itsallwhite, May 19, 2009 IP
  2. itsallwhite

    itsallwhite Peon

    Messages:
    607
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Is there anyone that can help with this - I just can't see why it won't work! you time and help is much appreciated!

    Thanks alot!
     
    itsallwhite, May 20, 2009 IP
  3. Lpe04

    Lpe04 Peon

    Messages:
    579
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #3
    seems to be working now.
     
    Lpe04, May 23, 2009 IP