Add redirect with wildcard for 404's only
-
I have a group of posts that have a common phrase in them, but they are only temporary. I’d like to redirect any incoming hits for the posts that are gone to the main category page.
For example, if an incoming 404 is for /2016/01/page1-ex-post/, which is not there anymore, I’d like it to redirect to /category/ex-post/.
I found this expression “/(.*)ex-post(.*)“, but when I add that, ALL of those posts are redirected and it also creates a loop on the category page.
Ideas on how I can accomplish this?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Add redirect with wildcard for 404's only’ is closed to new replies.