Skip to content

Cookie settings

Choose which kinds of cookies you allow. You can change your choice at any time via Cookie settings at the bottom of every page. Privacy statement

Necessary

Always on

Needed to log in, keep your cart and remember your choices. These are always on.

Which cookies?
  • weboke_sessie, weboke_klant, weboke_remember: your session and staying logged in
  • weboke_basket: your cart
  • wkBtwIncl: showing prices with or without VAT
  • wok_cookies: your cookie choice, 12 months

Measures which ad leads to a visit or order, so we do not pay for ads that do nothing.

Which cookies?
  • Google Ads via Google Tag Manager (_gcl_au, _gcl_aw), up to 90 days
  • OpenAI Ads, ads in ChatGPT
  • wok_aff: which partner referred you to us (affiliate programme), 60 days

4.6

Country and language

Each country has its own site, with prices and VAT for that country.

View

Keeping a page out of Google: robots.txt or noindex?

Don't want a page to show up in Google, for example a thank you page, a test page, or an old promotion? A lot of people then think of the file robots.txt. But robots.txt doesn't keep a page out of Google. That's what noindex is for. In this article, you'll read the difference, how to use both, and what to do with a page you've deleted. We'll use example.com as an example.

The difference in short

robots.txtnoindex
What it says"Don't fetch this page.""Don't include this page in the search results."
Does it keep a page out of Google?No. If others link to the page, the address can still appear, without a description.Yes, as soon as Google has revisited the page.
Where is it located?One file at https://example.com/robots.txtIn the page itself, or as a header sent by the server
What do you use it for?Steering crawl traffic, for example skipping search result pages of your own sitePages that remain reachable, but shouldn't be in Google

Neither of these is a form of security. Anyone can read your robots.txt, and a page with noindex remains perfectly reachable. If something really needs to be shielded off, put it behind a password. See Securing a folder with a password in DirectAdmin.

Using noindex

Put this line in the <head> of the page:

<meta name="robots" content="noindex">

For files without HTML, such as a pdf, the server can send the same instruction as a header: X-Robots-Tag: noindex. The effect is the same.

Usually you don't have to type this yourself:

  • AI Builder: open the SEO section, choose the page and under More for this page turn off the Make this page findable in Google switch. The page remains reachable, but gets a noindex. Then publish again.
  • WordPress: an SEO plugin has a setting per page to prevent the page from being indexed. The checkbox Discourage search engines from indexing this site under Settings, Reading applies to the whole site.
  • Other website builders: look for a setting like "hide from search engines".
Don't block a page with noindex in robots.txt as well. Then Google isn't allowed to fetch the page and never sees the noindex. The address can then keep showing up in Google through other people's links. Want a page out of Google: let Google fetch it and put a noindex on it.

Creating or editing robots.txt

On a hosting package, robots.txt is located in the web folder of your domain, in DirectAdmin the folder public_html. You create or edit the file via File Manager or FTP, see Opening File Manager: the folders in your package. An example:

User-agent: *
Disallow: /zoeken
Disallow: /winkelmand/

Sitemap: https://example.com/sitemap.xml
  • User-agent: * applies to all search robots. Disallow: with a path forbids anything starting with that path. Disallow: / forbids the entire site.
  • If you also create a group User-agent: Googlebot, Google only follows that group and ignores the * group. So repeat there all the rules that also apply to Google.
  • Don't block folders with stylesheets, scripts, or images that your page needs.
  • No robots.txt is not a problem: then everything is allowed. If the address returns a server error, Google temporarily stops fetching.

WordPress creates its own robots.txt as long as there's no file in the web folder. The AI Builder sets its own robots.txt with a Sitemap: line when publishing.

Google usually caches your robots.txt for up to 24 hours. In Search Console, under Settings, you'll find the robots.txt report: which version Google last fetched, with errors and warnings, and a button to have it fetched again.

A deleted page: 404 or 410, not a soft 404

If you've deleted a page, the address should give the status code 404 (not found) or 410 (gone). On the next visit, Google will then remove the address from the search results. If the page has a successor, redirect the old address with a 301 to that new page, see Site Redirect: redirecting a domain or page.

A soft 404 is a page that says it isn't there, or is nearly empty, but still gives the code 200 (found). Google often recognizes this and won't include such a page. In Search Console, you'll see it as the reason Soft 404. Redirecting all deleted pages to your homepage can also count as a soft 404. So make sure a page that's really gone gives a real 404 or 410.

Does a page need to come out of the results quickly, for example because it accidentally contained personal data? Then use Removals in Search Console. That works temporarily, for about six months. So also make sure the page has a 404, 410, password, or noindex.

Trying to find out why a page is NOT in Google? Read My page isn't in Google: here's how to find out why.

Further reading

Using WordPress? In the lesson Findability: the basics of the free WordPress course, you'll read more about robots.txt and the Discourage search engines checkbox.

Was this article helpful?

← Back to General hosting

One moment…

Set up your domains

For each domain, arrange the nameservers, the link to your hosting and who becomes the owner.

Loading your domains…