Using RankMath with multisite subfolder websites

#562103
  • Resolved Anonymous
    Rank Math free

    Dear RankMath team,

    after doing a long research I didn’t find a solution for my problem. I’m using multisite for my blog, as I want to have it multilingual. I’ve installed all the plugins I need as network admin and activated them network wide. So far so good. But every time I switch to one of my subfolder websites, I get the following message displayed from RankMath:

    “It seems that the URL of your website has changed since you connected it to Rank Math. Click here to restore the connection.”

    I’ve tried hitting “click here”, but it doesn’t work, as it leads me to the network admin dashboard. How can I fix the problem? I’ve already connected Google Site Kit with my subfolders registering the subfolder domains without any problems, so I can use them on all my subfolder websites.

    Thank you for your reply!

    Luis

Viewing 5 replies - 1 through 5 (of 5 total)
  • Nigel
    Rank Math business

    Hello,

    Thank you for contacting us for help with setting up Rank Math on a multisite installation.

    Please disable the network level activation of Rank Math and activate the plugin on each subsite. Rank Math works best when it is activated at the subsite level instead of network level.

    Next, please add the following code snippet to your site to disable the Rank Math URL check function.

    
    /**
     * Filter whether we need to check for URL mismatch or not.
     */
    add_filter( 'rank_math/registration/do_url_check', '__return_false' );
    

    Hope that helps. Please let us know if you have questions.

    Anonymous
    Rank Math free

    Hello Nigel,

    thanks for replying so quickly. Where exactly should I add your code snippet? I’m still a beginner with wordpress so I need things explained a little more detailed to figure it out.

    Greetings,

    Luis

    Hello,

    Please add the code to your active theme’s functions.php file.

    You may also refer to this article to further guide you in implementing the code: https://rankmath.com/kb/wordpress-hooks-actions-filters/

    Hope that helps.

    Thank you.

    Anonymous
    Rank Math free

    Hello,

    I realized, that I don’t need to insert the code snippet, as I don’t get the message displayed after activating RankMath seperately on each subsite.

    Thanks for your help!

    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/#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 5 replies - 1 through 5 (of 5 total)

The ticket ‘Using RankMath with multisite subfolder websites’ is closed to new replies.