403 error
If you're getting a 403 Forbidden error when using the Instant Indexing API in Rank Math, it's often related to server settings, permissions, or how the API is configured. Here’s a step-by-step guide to troubleshoot and resolve the issue: 1. Verify the Instant Indexing Setup Ensure you’ve properly configured the Google Indexing API in Rank Math: Enable API Access : Follow Rank Math’s setup guide to ensure you've: Created a Google Cloud project. Generated an API key or service account JSON file. Uploaded the JSON key file to Rank Math. Ensure the API is enabled for your domain in Google Search Console. 2. Check HTTP Authorization Headers Some servers block the HTTP Authorization headers required by the Indexing API. The .htaccess file can be updated to allow these headers: Add the following rule to your .htaccess file: apache Copy Edit RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] Place this line just above the # BEGIN WordPress section if it’s not alrea...