Staging Site- Low URL score

  • We operate with a stating site. For us, this allows us to build, test and edit in a secure, non-live environment, and then push changes to the live site.

    Currently we get a warning that the permalink doesn’t contain the keyword as in staging it is structured as http://www.example.com/staging/?page_id=123 however when pushed to the live site, it changes to http://www.example.com/keyword

    Is there a way we can set this to ‘ignore’ in staging so that we get a true reflection of the score, or can you share how many points you get for the permalink and we can add on to each score when working on the SEO.

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

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

    The keywordInPermalink test has a total score of 5. You can add the following code snippet on your theme’s functions.php file on the staging site to remove this test and add the score to another test:

    /**
     * Rank Math snippet to disable 'keywordInPermalink' test.
     *
     * @param array  $tests Array of tests with score
     * @param string $type  Object type. Can be post, user or term.
     */
    add_filter( 'rank_math/researches/tests', function( $tests, $type ) {
    	
    	unset($tests['basic']['keywordInPermalink']);
            //Add the score(5) to keywordInMetaDescription(2)
    	$tests['basic']['keywordInMetaDescription']['score'] = 7;
    
        return $tests;
    }, 10, 2 );

    Looking forward to helping you. Thank you.

    ​​​​​​​

    Wow. Amazing. Thanks so much for your help and super fast response time! You’ve been a great help, Michael.

    Hello,

    We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you.

    If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/?rate=5#new-post about your overall experience with Rank Math? We appreciate your time and patience.

    If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

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

The ticket ‘Staging Site- Low URL score’ is closed to new replies.