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
Post a Comment