rank math is redirecting my custom html page

#573743
  • Resolved Anonymous
    Rank Math free

    hi support iam using a modification where i can show html message rather than html 404 header for cetian articles and iam using a custom page name 404.html where it will show custom message when wrong user opens the links and show 404 html message. rank math is redirecting them to 404 error page and how do i exclude custom html page.

    https://imgur.com/a/vUzPLPh

Viewing 7 replies - 1 through 7 (of 7 total)
  • Anonymous
    Rank Math free

    experts please help me

    Hello,

    Thank you for contacting the support and sorry for any inconvenience that might have been caused due to that.

    If you’re requesting an URL in WordPress and if that isn’t found, it’s WordPress default behaviour to redirect it to 404 page. To use custom HTML page which I believe is outside the WordPress installation, you need to bypass the WordPress default behaviour. Would you please share any affected URL so that we can check on our end.

    Also, you can use function like wp_redirect to redirect the page to the custom HTML page.

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    Thank you

    Anonymous
    Rank Math free

    hi thank you for the response

    here is the site without rankmath – https://sub2unlocker.com/index.php/2023/05/13/royal-match/
    Site With Rank Math- https://androjungle.com/solar-smash/

    iam using same custom php codes to hide content on desktop or mobile devices. on new site without rank math the php code is working fine and showing custom 404 message like you see in the first link. but in rank math site it is rediecting showing 404 erro instead of custom page

    Hello,

    Rank Math has a feature to control your website’s 404 in Rank Math > General Settings > Redirections > Fallback Behavior.

    In this case, you can set it to be in “Custom Redirection” and use the 404 HTML you have:
    https://rankmath.com/kb/general-settings/#custom-url

    You can also disable the Redirections module in Rank Math > Dashboard to disable the Fallback behavior feature of Rank Math.

    Let us know how this goes.

    Thank you.

    Anonymous
    Rank Math free

    hi Reinelle thanks for the response, i am not redirecting any page iam just showing a message with in the same url, if i use rerdirection as you suggested the url path is changing to andojungle/404.html rather than actual url and also it shows 404.html for both mobile and pc versions. i want to exclude rank math from interfering with my modifications as it shows 404 error instead of a my custom message which impact seo of the site.

    Anonymous
    Rank Math free

    i also tried to exclude the urls Also. https://ibb.co/26m6mVD

    i tried all possiblle features

    Hello,

    In this case, please try disabling Rank Math’s redirection module and check if your site’s 404 functions as normal.

    Head over to your WordPress dashboard > Rank Math > Dashboard and disable this module

    Redirect

    Let us know how this goes.

    Thank you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 7 replies - 1 through 7 (of 7 total)

The ticket ‘rank math is redirecting my custom html page’ is closed to new replies.