member pages being marked as "page not found"

#19289
  • Resolved MS Harris
    Rank Math free

    How can I exclude certain parts of the site, like administrative areas controlled by other scripts to be excluded from any re-naming by RankMath? Your script is marking all my membership pages as “Page no longer exists or was moved, try the site seach. ” as designated in the Misc pages area. The pages are NOT 404 and can be found, but RankMath thinks they can’t be found and is titling them as such.

    • This topic was modified 4 years, 5 months ago by MS Harris.
    • This topic was modified 4 years, 5 months ago by MS Harris.
Viewing 7 replies - 1 through 7 (of 7 total)
  • Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Hello,

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

    You can make use of the following filter to add a custom page title to any page on your site:

    /**
     * Filter to change the page title.
     * 
     * @param string $title
     */
    add_filter( 'rank_math/frontend/title', function( $title ) {
    	return $title;
    });

    You can also make use of the following filter to modify the robots meta data:

    /**
     * Allows filtering of the robots meta data.
     *
     * @param array $robots The meta robots directives.
     */
    add_filter( 'rank_math/frontend/robots', function( $robots ) {
    	return $robots;
    });

    Looking forward to helping you. Thank you.

    ​​​​​​​

    Thanks for the reply Michael…not exactly sure how to implement that.

    All I need is something that ignores all the page titles in /member/ directory.
    Not sure why RankMath is renaming those as ‘not found’. Probably because it’s a custom integration and not native WP pages. They are found and not 404, so this looks like a bug.

    Is there no exclusion function in the settings?

    • This reply was modified 4 years, 5 months ago by MS Harris.

    Hi there,

    Thanks for getting back to us.

    No this setting is not available but we would be happy to help in coming up with some custom code to fix this.
    Please edit the first post on this ticket and include your WP logins in the designated Sensitive Data section.
    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    We really look forward to helping you.

    I can do that, but you MUST be aware the aMember is integrated into my WordPress site.
    Messing with the aMember plugin in anyway is not allowed as it would break the site.

    Just not sure why your script is marking existing pages as 404.
    I think you need to add a function to exclude pages from RankMath entirely.
    Is that not possible at using your settings?

    Hi there,

    Thanks for getting back to me.

    You can disable Rank Math on the member pages by using the following code on your theme’s functions.php file:

    /*
     *
     * Disable Rank Math for member pages
     *
     */
    add_action( 'wp_head', 'rankmath_disable_features',1);
    function rankmath_disable_features() {
    if (strpos($_SERVER['REQUEST_URI'], "member") !== false){
        remove_all_actions( 'rank_math/head');
    }
    }

    As for the suggestion in my previous response, you can use the following snippet to set a custom title for the member pages:

    /**
     * Filter to change the page title.
     * 
     * @param string $title
     */
    add_filter( 'rank_math/frontend/title', function( $title ) {
            if (strpos($_SERVER['REQUEST_URI'], "member") !== false){
                 $title = "My custom member title";
                 return $title;
            }
    	return $title;
    });

    I hope this info helps. 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 ‘member pages being marked as "page not found"’ is closed to new replies.