Rank Math for WordPress

Hey;

Sorry, I’m a long-time user. I got this notice in Wordpress (enabling Rank Math).

I didn’t see anyone asking about Rank Math. I don’t know how to tell if this is necessary or not.

What should I do, Fork the ‘wordpress’ .tpl / .stpl templates and call them ‘Wordpress-Rankmath’?


Since you are using an NGINX server, you may need to add the following code to your configuration file if your Sitemap pages are not loading. If you are unsure how to do it, please contact your hosting provider. Hide
I already added

START Nginx Rewrites for Rank Math Sitemaps

rewrite ^/sitemap_index.xml$ /index.php?sitemap=1 last;
rewrite ^/([^/]+?)-sitemap([0-9]+)?.xml$ /index.php?sitemap=$1&sitemap_n=$2 last;

END Nginx Rewrites for Rank Math Sitemaps

Sorry, I forgot to mention

  • I am nginx / php-fpm user
  • I don’t have apache2 installed :slight_smile:

Hi,

Yes.

cd /usr/local/hestia/data/templates/web/nginx/php-fpm/
cp wordpress.tpl wordpress-rankmath.tpl
cp wordpress.stpl wordpress-rankmath.stpl

Edit both templates to add the rewrite rules and then edit your web domain to use the new template.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.