|
#1
|
|||
|
|||
|
I'm new to the whole web admin thing, so please forgive my ignorance. How do I set up robots.txt to stop search engine bots to not index a subdomain? Do I put the following robots.txt file in my www folder:
Code:
User-agent: * Disallow: /my_subdomain/ Code:
User-agent: * Disallow: / Last edited by theidolguy; 03-26-2008 at 10:21 AM. |
|
#2
|
||||
|
||||
|
I don't know myself, but you might be able to find your answer here:
http://www.robotstxt.org/
__________________
Have a great day, Evan |
|
#3
|
||||
|
||||
|
For the robot.txt I do it just like you have it, only I use them both, one in the root and the other in the sub. If a robot hits the root (main domain ) and sees the /subdomain then the robots.txt there should cover it. If it come through sub.domain.tld then it will see the robots.txt in the subdomain folder and read it as this would be the root for that domain. Of course this only applies to robots that obey the robots.txt file :-)
I always turn off indexes if I don't need them. Just add "Options -Indexes" without the quotes to you htaccess file in the public_html directory it will then apply to all sub directories. I don't use WP but a quick google found this; http://www.askapache.com/wordpress/h...d-protect.html
__________________
“There is a principle which is a bar against all information, which is proof against all arguments and which cannot fail to keep a man in everlasting ignorance—that principle is contempt prior to investigation.” —Herbert Spencer
|
![]() |
| Bookmarks |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
|
|
All times are GMT -5. The time now is 01:06 AM.








