Forum Moderators: phranque
I present to you a problem which is probably easy to fix, but is at the moment after doing searching on a few forums I still have not had a solution to. The problem is perplexing to me as well.
I have a site: mywidgets.com I installed phpnuke through cpanel which wanted to install in a directory. I put this in /index I have a redirect which will go into /index.
I have been reading seo for dummies (because…) Anyway, there was a tip on there to see what google had indexed (site:mywidgets.com -pppppp) and noticed the perplexing and shocking part.
Google had indexed and cashed all of the other directories in /public_html including myotherdomain.com which is in /carrot (parking took care of this and it points to /carrot as the root directory) and some other folders which I do not want any bot good or bad indexing or associating it's self with mywidgets.com
I still want to access these folders, by going to them and don't want it to break anything affecting myotherdomain.com
Do I do this with .htaccess? If so how? If not, then what have I done wrong?
Thanks for reading and replying.
How do you that? Use a robots.txt [robotstxt.org] file.
Here's a nice easy tutorial [searchengineworld.com].
Do you really not want anything in your site indexed by Google except the home page?
There's probably some method using mod_rewrite in your .htaccess file to accomplish this, but I'm no mod_rewrite expert. Someone else would have to help you with that, if that's what you want.
If you use templates in your site, you could put the per-page "no-index no-follow" robots instruction in the template(s), and then all new pages based on the template(s) be no-indexed no-followed. You wouldn't have to remember to change robots.txt if you go that route.
Or maybe there's some perfect method out there that I'm not thinking of. Maybe someone else will come along and suggest it.
Since I have /carrot for my other site, I don't want Google or other bots indexing anything in that folder or subfolders because then it will look like I am cloning...
Also I have some personal and work related stuff in the other directories which I don't want to be searchable.