Quote:
Originally Posted by pikus
What should I write in this robots.txt?
|
Code:
User-agent: *
Disallow: /newdomainfolder/
The first line in your robots.txt specifies the name of the user-agent, in this case, an asterisk, which specifies all robots, because you want the instructions to apply to all of them. Therefore, your first line must duplicate mine.
Second and following lines begin with the case-sensitive, "Disallow" and a colon.
Disallow is the only instruction you can place in the Robots.txt.
It will not allow access to whatever you specify.
You need to specify the name of the folder that houses the root of your new domain, substituting the name of your folder in the place of mine.
Add one Disallow: per line for each additional file or folder you don't want to allow to be included in Web search results. For me, that includes /cgi-bin/, /css/ or /stylesheets/, and other pages that I don't want to have appearing in the world's search engines.
|