Htaccess blog redirect - Wordpress Solution
[Solved] - Htaccess blog redirect - Wordpress Solution
Try following codes
Hi, I need a permalink/htaccess redirect issue solved. Previous/current permalink structure: /blog/%year%/%monthnum%/%day%/%postname%/ New permalink structure: /%year%/%monthnum%/%day%/%postname%/ I need the htaccess code that will properly 301 redirect all posts /blog/%year%/%monthnum%/%day%/%postname%/ to /%year%/%monthnum%/%day%/%postname%/ and /blog/category/%cat-name% to /category/%cat-name% Thanks! UPDATE: forgot to mention it is a multisite installation

Solution - 1

Add this to the top of your .htacess file: RewriteCond %{REQUEST_URI} /blog/.+ RewriteRule ^blog/(.*)? http://yoursite.com/$1 [R=301,L]

Solution - 2

Hello you can use it with easy method. Redirection plugin. http://wordpress.org/extend/plugins/redirection/

Solution - 3

Try this:

RewriteEngine On RewriteRule ^blog/(.+) /$1 [L]
edit: well, Lew was faster. :)

Solution - 4


Date: 2022-10-21 05:18:09
Category: Wordpress
More for You