Redirect all tag pages in WordPress using .htaccess -


i trying redirect tag pages in wordpress website blog page using .htaccess. code in .htaccess -

redirect 301 ^tag/(.*) /blog/ 

unfortunately not work, can solution it?

redirect directive doesn't use regex, can use redirectmatch instead

redirectmatch 301 ^/tag/(.*) /blog/ 

or

redirect 301 /tag/ /blog/ 

Comments

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -

java - Digest auth with Spring Security using javaconfig -