### Example URL with UTM Parameters Source: https://rankmath.com/kb/utm-parameters-with-redirects This is an example of a URL with all five standard UTM parameters appended as query strings. ```url https:/example.com?utm_source=newsletter&utm_medium=email&utm_campaign=sale&utm_term=running%2Bshoes&utm_content=textlink ``` -------------------------------- ### Example Sitemap URL Structure Source: https://rankmath.com/kb/couldnt-fetch-error-google-search-console This is an example of how your sitemap URL should be structured if it's located in the root folder of your WordPress installation. ```text https://yourdomainname.com/sitemap_index.xml ``` -------------------------------- ### Configure composer.json for Rank Math PRO Installation Source: https://rankmath.com/kb/install-rank-math-pro-with-composer This composer.json configuration installs both Rank Math SEO Free and PRO versions. Ensure both plugins are installed and activated for PRO to function correctly. Update the version number and delete composer.lock to update the PRO plugin. ```JSON { "require": { "wpackagist-plugin/seo-by-rank-math":"*", "rankmath/seo-by-rank-math-pro": "*" }, "repositories": [ { "type": "composer", "url": "https://wpackagist.org" }, { "type": "package", "package": { "name": "rankmath/seo-by-rank-math-pro", "type": "wordpress-plugin", "version": "2.7.0", "dist": { "type": "zip", "url": "https://rankmath.com/download/510590/?username=testcomposer&api_key=29d4f7d643804e96512114d420b76693" }, "require": { "composer/installers": "*" } } } ], "extra": { "installer-paths": { "wp-content/plugins/{$name}/": ["type:wordpress-plugin"] } } } ``` -------------------------------- ### Example URL Before Removing Category Base Source: https://rankmath.com/kb/remove-wordpress-category-base This is an example of a category archive URL before the 'Strip Category Base' option is enabled in Rank Math. ```html https://yourwebsite.com/category/SEO/ ``` -------------------------------- ### Example Customized Outreach Email Prompt Source: https://rankmath.com/kb/write-outreach-email-with-content-ai An example of a fully customized prompt for RankBot, detailing a specific outreach scenario for project management software. ```plaintext “Write a professional and persuasive email outreach template addressed to **TechWave Solutions**. I am reaching out to introduce our **new project management software, TaskFlow**. **TaskFlow** is designed to **help teams streamline workflows and increase productivity by 40% using AI-powered automation and advanced reporting tools**. Please craft the email to be engaging, professional, and concise, with a clear **call-to-action inviting them to book a demo session**. Also, include a compelling subject line to maximize open rates.” ``` -------------------------------- ### Example of a Good URL for Google News Source: https://rankmath.com/kb/google-news-requirements Use permanent, unique, short, and keyword-rich URLs for articles. This example demonstrates an ideal URL structure. ```text https://rankmath.local/top-ten-ways-to-get-listed-in-google-news ``` -------------------------------- ### Example Article Schema Markup Source: https://rankmath.com/kb/how-to-view-page-source This example demonstrates a simple Schema markup for an article, providing search engines with specific details about the content. This can be validated using the Rich Results test. ```HTML ``` -------------------------------- ### Set Default General Settings on Installation Source: https://rankmath.com/kb/filters-hooks-api-developer Set a default value for general settings when Rank Math is installed on a WP website. Refer to the options and default values for guidance. ```php /** * Add defaults for general options. * * @param array $settings Array of settings and its values. */ add_filter( 'rank_math/settings/defaults/general', function( $settings ) { return $settings; }); ``` -------------------------------- ### Example Breadcrumb with Prefix Source: https://rankmath.com/kb/breadcrumbs This demonstrates how a prefix like 'You are here: ' is added to the breadcrumb. ```text You are here: Home / Knowledge Base / SEO Suite / How to Enable Breadcrumbs on Your Website with Rank Math SEO ``` -------------------------------- ### Example URL After Removing Category Base Source: https://rankmath.com/kb/remove-wordpress-category-base This is an example of a category archive URL after enabling the 'Strip Category Base' option in Rank Math, resulting in a shorter URL. ```html https://yourwebsite.com/SEO/ ``` -------------------------------- ### Example WooCommerce Product URL Source: https://rankmath.com/kb/general-settings Illustrates the default URL structure for a WooCommerce product before applying optimizations. ```text https://yourwebsite.com/shop/product-1/ ``` -------------------------------- ### Block Users Based on IP Source: https://rankmath.com/kb/edit-htaccess Block access for specific IP addresses or IP ranges. The example blocks IPs starting with 255 and 123. You can specify exact IPs or ranges. ```apache order allow,deny deny from 255.x.x.x deny from 123.x.x.x allow from all ``` -------------------------------- ### Example: Specifying User-Agents for Google and Bing Source: https://rankmath.com/kb/robots-meta-tag-vs-x-robots Use separate meta tags to provide specific instructions for different search engine crawlers like Googlebot and Bingbot. ```html ``` -------------------------------- ### Example of hreflang Tag for German Content Source: https://rankmath.com/kb/translated-pages-not-in-sitemap This hreflang tag indicates to Google that an alternative version of the page is available in German. It is used to guide search engines in ranking the correct page for specific language and regional audiences. ```html ``` -------------------------------- ### Download Plugin Zip with wget Source: https://rankmath.com/kb/installing-with-ssh Use the `wget` command to download the plugin zip file from a provided URL to your server. ```bash wget "plugin zip URL" ``` -------------------------------- ### Example UGC Attribute in HTML Source: https://rankmath.com/kb/stop-adding-relugc-to-links-in-comments This is an example of how a UGC ('user-generated content') attribute appears in an HTML anchor tag. ```html Example UGC text ``` -------------------------------- ### Complete SSH Plugin Installation Sequence Source: https://rankmath.com/kb/installing-with-ssh This sequence shows the combined commands for downloading, unzipping, and removing the Rank Math plugin zip file via SSH. ```bash [yourserver@host /home/yourserver/public_html/wp-content/plugins/] : wget http://downloads.wordpress.org/plugin/rank-math.0.9.3.zip [yourserver@host /home/yourserver/public_html/wp-content/plugins/] : gunzip rank-math.0.9.3.zip [yourserver@host /home/yourserver/public_html/wp-content/plugins/] : rm rank-math.0.9.3.zip ``` -------------------------------- ### HTML Title Tag Example Source: https://rankmath.com/kb/ideal-meta-title-length This is an example of an HTML title tag as it appears in the source code of a web page. ```html How to Setup Rank Math SEO Plugin Properly ``` -------------------------------- ### Basic Spintax Syntax Example Source: https://rankmath.com/kb/spintax Demonstrates the fundamental structure of Spintax with a simple word replacement. ```text **{**word1**|**word2**|**word3**}** ``` -------------------------------- ### Example of a Bad URL for Google News Source: https://rankmath.com/kb/google-news-requirements Avoid dynamic or non-descriptive URLs. This example shows a URL structure that is not suitable for Google News. ```text https://rankmath.local/article?id=1234 ``` -------------------------------- ### Example of a Short URL Source: https://rankmath.com/kb/score-100-in-tests Demonstrates a concise and SEO-friendly URL that is preferred for search engine ranking. ```text www.site.com/best-wordpress-seo-plugin ``` -------------------------------- ### Example: Remove 'Uncategorized' Breadcrumb Item Source: https://rankmath.com/kb/make-theme-rank-math-compatible This example demonstrates how to remove a specific breadcrumb item, such as 'Uncategorized', from the breadcrumb trail using the rank_math/frontend/breadcrumb/items filter. ```php add_filter('rank_math/frontend/breadcrumb/items', function ($crumbs, $class) { $key = array_search('Uncategorized', array_column($crumbs, '0'), true); if (isset($key)) { unset($crumbs[$key]); $crumbs = array_values($crumbs); } return $crumbs; }, 10, 2); ``` -------------------------------- ### WebSite Schema Markup Example (JSON-LD) Source: https://rankmath.com/kb/website-schema This snippet shows the basic structure of WebSite Schema using JSON-LD format. It includes the website's URL, name, and a search action target. Ensure this is added to your site's HTML. ```json ``` -------------------------------- ### Display Date and Set Number of Posts Source: https://rankmath.com/kb/customize-related-posts Combine multiple attributes to customize the related posts shortcode. This example sets the number of posts to 4 and enables the display of the publish date. ```shortcode [rank_math_related_posts number="4" date="true"] ``` -------------------------------- ### Disable Title Starts with Keyword Test Source: https://rankmath.com/kb/disable-seo-content-tests Prevent Rank Math from checking if your title starts with the target keyword. This filter removes the 'titleStartWithKeyword' test. ```php /** * Filter to disable Title starts with Keyword test */ add_filter('rank_math/researches/tests', function ($tests, $type) { unset($tests['titleStartWithKeyword']); return $tests; }, 10, 2 ); ``` -------------------------------- ### Bing Sitemap Index URL Example Source: https://rankmath.com/kb/submit-sitemap-to-bing This is an example of a sitemap index URL to submit to Bing Webmaster Tools. Ensure you are submitting the index file, not individual sitemaps. ```text https://rankmath.local/sitemap_index.xml ``` -------------------------------- ### Run an SEO Audit Source: https://rankmath.com/kb/mcp-tools Use this command to initiate an SEO audit for a specified URL, your entire site, or a competitor's site. ```bash rank-math/audit-site-seo ``` -------------------------------- ### Example: Set 'noindex', 'nofollow' for 'Uncategorized' Posts Source: https://rankmath.com/kb/make-theme-rank-math-compatible This example shows how to apply 'noindex' and 'nofollow' directives to posts belonging to the 'Uncategorized' category using the rank_math/frontend/robots filter. ```php add_filter('rank_math/frontend/robots', function ($robots) { global $post; $postInCategory = false; foreach ((get_the_category()) as $category) { if ($category->name == 'uncategorized') { $postInCategory = true; break; } } if ($postInCategory == true) { $robots['index'] = 'noindex'; $robots['follow'] = 'nofollow'; } return $robots; }); ```