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.
WordPressApache Web Server

Avatar of undefined
Last Comment
Nancy Rindone

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Nancy Rindone

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck