RexgEx from .asp to Wordpress Not working as expected

Viewed 18

I have a very old site (Microsoft .asp) that I am rebuilding in WordPress. I am preserving the identical url structure on the new site.

Example: https://example.org/directory/mypage.asp TO https://example.org/directory/mypage/

I have written a RegEx for the pages that end in .asp as follows. (Using Redirection plugin)

Source URL

^/(.*).asp

Target URL

/URL: /$1/

But it is not working as expected - the .asp link still resolves. Note: I am currently in a staging environment with a temp url but I don't think that should matter the way I have the regex written?

0 Answers
Related