Jump to content

robots.txt


master82

Recommended Posts

Hello all,

Could somebody please explain how I would use the robots.txt to stop search engines indexing all of my site, except my index page.

Could someone please give me an example of what i put in the robots.txt, and do I need to add anything to my HTML or PHP pages?

Thanks in advance
Link to comment
Share on other sites

here:

[color=red]User-agent: *
Disallow: /apartments/redirect.php
Disallow: /nyc_apartments/new_york_city_rentals.htm
Disallow: /includes/
Disallow: /includes/appointment.php
Disallow: /includes/bookmark.php
Allow: /includes/img.php
Allow: /includes/gallery.php[/color]
Link to comment
Share on other sites

OK thanks, just 1 question:

You have

Disallow: /includes/
Disallow: /includes/appointments.php

Am I correct in thinking that you didnt need the second disallow above because you have already disallowed access to the folder? or has each page got to be disallowed individually?
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.