Forum Moderators: goodroi

Message Too Old, No Replies

PHP site

Disallowing pages

         

dj_lysuc

7:16 pm on Mar 12, 2005 (gmt 0)

10+ Year Member



Hi everyone, I have a site in PHP and all pages go through the index.php file. This loads a header file, other files and the main index. When index.php?page=anotherpage is called, different content is shown.

I thought this would be good for search engine lists as it would only list my main index, but was a bit taken back when google listed one of my other pages ABOVE my main index in the search results!

I only want the main index listed and have today added meta name="robots" content="noindex,nofollow" to the header file to show on all pages but the index page. Do I need to add a robots.txt file, and if so will I have to list every page i.e as follows or what options do I have?

User-agent: *
Disallow: index.php?page=page2
Disallow: index.php?page=page3

ogletree

7:44 pm on Mar 12, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I am very confused why you only want one page in google. The more pages you have the better.

dj_lysuc

12:30 pm on Mar 13, 2005 (gmt 0)

10+ Year Member



I'm having bandwidth problems and don't want sub pages listed.