Wilcard Redirect Issue | WordPress.org

[ad_1]

Hello,

I am trying to set up a wildcard redirect, I have done this many times before and it works fine but in this use case there’s a slight difference.

I am redirecting

^/cms/(.*)

to

/$1

and this works on URLs like

and changes it to

Job done, or so I thought

But my issue is we have 100s of pdf URLs that need to redirect like

and these don’t redirect.

I’m guessing because it’s a .pdf URL.

Is there something else I need to add to make sure it works for this sort of URL in the media library and not just standard WordPress page URLs.

The site is hosted on WPEngine so I can’t use htaccess.

Please advise.

Thanks in advance.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer