I have been using the Redirection Plugin for WordPress for some time without any issues. A couple of days ago i installed RankMath and had it import the redirects. For the most part these are working fine, but there are a couple that have since broken within Rankmath.
I have some affiliate banners that go through a redirect script when clicked. An example URL might be…
This is supposed to hit the /lazadabanner/ redirect and then take the full URL from above and attached it to http://c.lazada.com.ph/t/c.Zala?url=$1 – however this is results in a 404.
The redirect code is as follows…
It looks like RankMath is stripping one the the / from the https://c.lazada.com.ph/t/c.WcFXn variable that is passed and resulting in https:/c.lazada.com.ph/t/c.WcFXn
So instead of the redirect URL being https://www.prettyme.ph/lazadabanner/https://c.lazada.com.ph/t/c.WcFXn with the final destination page being https://c.lazada.com.ph/t/c.WcFXn it is actually https://www.prettyme.ph/lazadabanner/https://c.lazada.com.ph/t/c.WcFXn (missing the / on the second https) and results in a 404 error.
Also, I seem to have an issue with RankMath not removing a notice from the top of WordPress. It keeps saying “We detected new post type(s) (etheme_portfolio, testimonial), and you would want to check the settings of Titles & Meta page.” but I configure that page and click the x but it keeps coming back.
The ticket ‘Imported Redirect No Longer Works’ is closed to new replies.