WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] I moved WordPress to a new folder. How do I get the old permalinks to redirect?

[Resolved] I moved WordPress to a new folder. How do I get the old permalinks to redirect?

Viewing 2 replies - 1 through 2 (of 2 total)
  • If you’re on Apache you can add this to your .htaccess before the WP rewriterules:

    RewriteBase /
    RewriteRule ^blog/(.*) /$1 [R=301,L]

    Firas. That’s PERFECT. It does exactly what I wanted it to do. Thanks so much!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] I moved WordPress to a new folder. How do I get the old permalinks to redirect?’ is closed to new replies.
Skip to toolbar