Wilcard Redirect Issue
-
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
https://example.com/cms/wp-content/uploads/2022/06/document.pdf
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.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Wilcard Redirect Issue’ is closed to new replies.