• Resolved mvanboordt

    (@mvanboordt)


    Hi,

    I have a website that contains pages that aren’t ment to be found by bots. So I would like to tell bots that they can’t have access to certain pages.
    I wanted to do this with .htaccess but I can’t find anything on pages.

    Hope someone can help me out!

    M.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Insert the following into your robots.text file in your root:

    User-agent: *
    Disallow: /page-1-to-disallow
    Disallow: /page-2-to-disallow

    If you don’t have such a file then create a blank text file, name it robots.txt and upload it to the root.

    If you use an SEO plugin like SEO WordPress you can also set the page/post to nofollow noindex

    Thread Starter mvanboordt

    (@mvanboordt)

    I used a plugin that adds noindex, nofolow to every page.
    Thnx for your feedback

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘.htaccess block certain pages’ is closed to new replies.