Link to home
Start Free TrialLog in
Avatar of pcontreras
pcontreras

asked on

301 Redirects not working for wordpress

I was wondering if anyone could please help me with why my 301 redirects are not working.

Here is my htaccess file that has the rewriterule in place.

    # BEGIN WPSuperCache
    # END WPSuperCache

    <Files 403.shtml>
    order allow,deny
    allow from all
    </Files>

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



    Rewriterule ^category/the-random/art$ /category/random-pics/art-pictures/$1 [L,NC,R=301]
    Rewriterule ^category/the-random/art/(.*)$ /category/random-pics/art-pictures/$1 [L,NC,R=301]

    </IfModule>

    # END WordPress

I am looking to redirect the link example.com/category/the-random/art/ to example.com/category/random-pics/art-pictures/. All page numbers should be redirected as well.
ASKER CERTIFIED SOLUTION
Avatar of Nancy Rindone
Nancy Rindone
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial