I Help You

Robots.txt for Wix — Example, Template & Best Practices

QUICK SUMMARY

  • A robots.txt file for Wix helps control how search engines crawl your site
  • Wix auto-generates robots.txt — edit via dashboard → SEO → Robots.txt
  • System paths like /_api/ are blocked automatically
  • Add custom rules for internal search pages and low-value URLs
  • Sitemap is auto-generated and included in the default file

A robots.txt file for Wix helps control how search engines crawl your site — and unlike many platforms, Wix handles the most critical system-level blocks for you automatically. The main configuration task is extending the default file to cover site-specific low-value pages, such as internal search results or duplicate URL patterns.

Wix robots.txt template

Wix adds its own directives automatically. These custom rules extend the default configuration — paste them in through your SEO dashboard or use our robots.txt generator to build a full file:

robots.txt
User-agent: *
Disallow: /admin
Disallow: /_api/
Disallow: /_partials/
Disallow: /?query

Sitemap: https://www.yoursite.com/sitemap.xml

What each rule does

  • /admin: Your site administration panel — should never appear in search results.
  • /_api/ and /_partials/: Internal Wix system endpoints used for site functionality. Wix blocks these by default, but including them explicitly is harmless.
  • /?query: Internal search result pages. If your Wix site has a search bar, blocking these prevents thin, duplicate results from being indexed.

Once you have your file ready, test this robots.txt using our robots.txt tester to verify all your key pages remain accessible. For general configuration references, browse our robots.txt examples library.

Common Wix robots.txt mistakes

Wix manages a lot automatically — but these errors still trip people up.

Over-blocking Wix system paths

Adding broad Disallow rules that cover Wix's internal paths like /_api/ or /_partials/ is usually unnecessary — Wix already handles these. Duplicate rules don't cause harm, but manual errors in system paths can.

Blocking image or asset folders

Wix serves images and media through internal paths. A broad Disallow rule that accidentally covers your media library will prevent Google from rendering your pages correctly.

Missing the Sitemap directive

Wix includes the sitemap in the default robots.txt, but if you've heavily customised your file and removed it, crawlers won't automatically find your pages. Always verify the Sitemap: line is present.

Adding noindex via robots.txt

A common misconception: robots.txt cannot noindex pages, it can only block crawling. If you want to hide a page from search results, use a noindex meta tag — not a Disallow rule.

Wix robots.txt best practices

Simple rules that will keep your Wix site's crawl configuration in good shape.

Let Wix manage the defaults

Wix's auto-generated robots.txt handles the most important system-level blocks. Start there and only add custom rules for site-specific pages with no SEO value.

Block internal search and filter URLs

If your Wix site has search functionality, block /?query= to prevent thin search result pages from entering Google's index.

Verify your sitemap is included

Open yoursite.com/robots.txt in a browser and confirm the Sitemap: line is present and points to the correct URL before submitting to Search Console.

Test before publishing

Use our robots.txt tester to confirm all your key pages are accessible to Googlebot before saving changes.

When NOT to use these rules

Applying these directives in the wrong context can harm your site's SEO. Keep these limits in mind:

  • Do NOT override Wix's internal system paths unnecessarily — /_api/ and /_partials/ are already blocked automatically by default.
  • Do NOT block media files or image directories — they power your site's visual rendering and Google Image Search indexing.
  • Do NOT use Disallow: / on a live Wix site — this removes every page on your domain from Google's index.

Set up your Wix robots.txt correctly

Test your existing file for errors, or generate a new one — free, no account required.

Related robots.txt guides

More platform-specific guides in the series.

Frequently Asked Questions

Common questions about robots.txt on Wix websites.

Can I edit robots.txt on Wix?

Yes. Wix allows you to customise your robots.txt file through your site's SEO settings. Go to your Wix dashboard → SEO → Robots.txt. The editor gives you a text area to add or modify directives. Note that Wix manages some entries automatically and your changes are added on top of the default rules.

Does Wix auto-generate a robots.txt?

Yes. Every Wix site has an automatically generated robots.txt at yoursite.com/robots.txt. It blocks internal Wix system paths and points to your sitemap. You can view and extend it from your SEO dashboard without touching any code.

What should I block in my Wix robots.txt?

Wix already blocks most internal paths automatically. The main additions worth making are blocking internal search result pages (/?query=) and any preview or draft URLs that may be accessible. Most Wix sites need very few custom Disallow rules beyond what Wix sets by default.

How do I find my Wix sitemap URL?

Your Wix sitemap is automatically generated at https://www.yoursite.com/sitemap.xml. Wix keeps it updated whenever you add or remove pages. Your robots.txt already points to it by default, but double-check this by visiting yoursite.com/robots.txt in a browser.

For more configuration examples and SEO rules, see our robots.txt examples and best practices guide.