-
Hello,
Hoping for a little assistance.
We’re trying to implement a 301 redirect that changes URLs to any post category from “category” to “blog,” like this:
FROM: our-site.com/category/ANY-CATEGORY-TITLE
TO: our-site.com/blog/ANY-CATEGORY-TITLERankmath’s AI tool says that this should work:
FROM: [category/(.*)]
TO: blog/$1Presumably that is a Regex redirect, though we tried all redirect options, but none work.
We also tried the following for TO: https://our-site.com/blog/$1, but that still doesn’t work.
Note that we have defined the “Category Base” value to “blog” in WordPress’ Permalinks settings, which works when accessing a category from a post’s meta details, but we also need to redirect links from search engines that still go to “category/post-title”.
Thanks ahead,
FJ
The ticket ‘Wildcard redirect’ is closed to new replies.