|
/ Documentation /AI Ready/ How to Fix a 403 on /.well-known/ Addresses

How to Fix a 403 on /.well-known/ Addresses

Some SureRank discovery files are published at addresses under /.well-known/. When a server or host answers those addresses itself, the request never reaches WordPress, and the file shows an error such as 403 even though its switch is on. This doc shows how to confirm the problem and how to fix it on the server.

Requirements

  • SureRank and SureRank Premium, both active and updated to the latest versions
  • An active SureRank Premium license (Pro, Starter, or Business). Upgrade here
  • AI Ready turned on. See How to Enable Markdown Copies in SureRank Premium.
  • Access to the server settings of the site, or the support contact of the host

Which Files Are Affected

This section lists the files that depend on /.well-known/ and the ones that do not.

These five files are published under /.well-known/, so a server rule can block them:

  • The API catalog
  • The MCP server card
  • The Agent Skills index, and the skill files it lists
  • The AI catalog
  • The Personal Agent Protocol manifest

These files do not live under /.well-known/, so this problem does not affect them: auth.md, llms.txt, the Content Signals line in robots.txt, and the WebMCP tools.

Online scanners report the same problem. For example, isitagentready.com shows a 403 for each of the five addresses.

Why It Happens

Many servers, hosts, and firewalls handle /.well-known/ themselves, for example for security certificates. A rule can send those requests to a real folder, or refuse them, before WordPress runs. SureRank cannot change a server rule from inside WordPress, so the change has to be made on the server or by the host. It only takes a few lines, and only the addresses SureRank publishes are sent to WordPress. Your other rules for /.well-known/ stay as they are.

How to Confirm the Problem

If you’re looking to find out whether the server is blocking the files, follow the steps below.

  1. Open one of the addresses in a browser, for example https://example.com/.well-known/api-catalog. Replace example.com with your domain.
  2. If the browser shows an error page (403 or 404) instead of the file, a server rule or a security rule may be answering the address. The error alone does not prove it, so use the next sections to check, or ask the host.
  3. Go to SureRank → AI Ready → AI Ready Checks and click Run Checks. The rows for the blocked files show a Warning that says the address is not reaching SureRank.

How to Get the Server Lines

AI Ready Checks gives the exact lines for the server. Follow the steps below.

  1. Go to SureRank → AI Ready → AI Ready Checks.
  2. Click the arrow button on the right of one of the rows that says the address is not reaching SureRank.
  3. In the panel, find the section What to Change on Your Server. It has the lines for nginx, the lines for Apache or LiteSpeed, and a short message for Not sure?. Each block of lines has a copy button at its top right.

The five Warning rows are the API catalog, the MCP card, the Agent Skills index, the AI catalog, and the Personal Agent Protocol manifest. Each row opens a panel with the same server instructions.

The panel lists one line for each address that SureRank publishes. Use the lines from the panel instead of typing them by hand.

How to Fix It on an nginx Server

Use these steps when the site runs on nginx. Follow the steps below.

  1. Copy the nginx lines from the panel.
  2. Paste them inside the server block for the site in the nginx settings.
  3. Reload nginx.

Each line has the form location = /.well-known/api-catalog { rewrite ^ /index.php?surerank_well_known=$uri last; }. It sends one SureRank address to WordPress and leaves the rest of /.well-known/ as it was. If a rule blocks the whole /.well-known/ folder, the lines still work, because they match the exact addresses.

How to Fix It on an Apache or LiteSpeed Server

Use these steps when the site runs on Apache or LiteSpeed. Follow the steps below.

  1. Copy the Apache or LiteSpeed lines from the panel.
  2. Add them to a .htaccess file inside the .well-known folder in the web root of the site. Create the file if it is not there.
  3. Save the file.

Only the addresses SureRank publishes are sent to WordPress.

How to Ask the Host to Fix It

Managed hosting, a CDN, or a security plugin may block the addresses, and the settings may not be reachable from the dashboard. In that case, send the host or the support team of the service this message:

“Please let requests for these addresses reach WordPress on example.com: /.well-known/api-catalog, /.well-known/ai-catalog.json, /.well-known/poppy.json, /.well-known/mcp/server-card.json, /.well-known/mcp/server-cards.json, /.well-known/mcp.json, and everything under /.well-known/agent-skills/.”

Replace example.com with your domain. If a firewall or security plugin is the cause, its support team can allow the same addresses.

How to Check That It Worked

After the change, check the files again. Follow the steps below.

  1. Open https://example.com/.well-known/api-catalog in a browser. The file should load instead of an error page.
  2. Go to SureRank → AI Ready → AI Ready Checks and click Run Checks.
  3. Confirm that the rows no longer show the “not reaching SureRank” warning. A row can show another message if the check finds a different issue, so read the message it shows.

Expected Outcome

After the server change, the five files can load at their addresses, and their rows in AI Ready Checks no longer show the “not reaching SureRank” warning. A row can show another message if the check finds a different issue. Other addresses under /.well-known/ keep following the rules the server already had.

Notes and Limitations

  • Changing server settings needs access to the server. It is recommended to keep a copy of the settings file before editing it.
  • Discovery files under /.well-known/ can only be published at the root of a domain. A site installed in a subdirectory cannot publish them from SureRank.
  • If the files still show an error after the change, clear the cache of the site and of any CDN, and check the address again.
  • On a server that already sends the addresses to WordPress, the rows pass without any change.

Related Docs

FAQ

Do auth.md and llms.txt need a server change?

No. Both are published at the root of the site, not under /.well-known/.

Is it safe to add these lines?

The lines send only the addresses SureRank publishes to WordPress. Other rules for /.well-known/ stay as they are.

The switch is on, so why does the address show an error?

The switch makes SureRank publish the file, but the server answers the address before WordPress runs. The server change above lets the request reach WordPress.

Was this doc helpful?
What went wrong?

We don't respond to the article feedback, we use it to improve our support content.

Need help? Contact Support
Table of Contents
Scroll to Top