thedesignstudent Posted March 4, 2008 Posted March 4, 2008 I have a site with 6 php includes. header,footer,right menu, left menu, sales menu, content. Sometimes more for a special menu. Do I need a robots.txt in every .php include for it to be effective? I don't necessarily want the robot crawling all of my headers if my bandwidth is suffering from anything unecessary. I'm doing a php include of a robots.txt file so that way I can universally update it across the platform. Yeah, maybe nobody should have clued me in on the basics of php. Even though I haven't started programming as a programmer would, the doors have been opened and I'm using this knowledge everyday. Is 6 php includes for a robots.txt file in every include overkill, or smart use? I understand it's open to interpretation and I highly value your opinions. If anyone else is doing something similar, it would be fun to hear what you're up to;definitely participate. Quote
TCH-Andy Posted March 4, 2008 Posted March 4, 2008 I'd suggest just putting one robots.txt file in the root folder (public_html directory) of your account ( and in subdomains, if you have subdomains) Quote
thedesignstudent Posted March 4, 2008 Author Posted March 4, 2008 Thanks! That saved me a world of wonder and missteps... Quote
thedesignstudent Posted March 4, 2008 Author Posted March 4, 2008 An hour later, that makes so much sense... thinking how a spider works, crawling through the directory. As a new programmer and designer with so much on my mind getting my pages up as fast as possible it's easy to not see the forest for the trees. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.