Welcome to WebmasterWorld Guest from 54.167.46.29

Forum Moderators: goodroi

Message Too Old, No Replies

syntax for all php exclusion

     
3:58 pm on Mar 15, 2004 (gmt 0)

Junior Member

10+ Year Member

joined:Nov 30, 2003
posts:125
votes: 0


Hello,

Im new to using robots.txt and was wondering how i would exclude all .php files.

Whats the syntax?

Dave

4:29 pm on Mar 15, 2004 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Feb 7, 2003
posts:1179
votes: 0


It works for html pages which you do not want to be spidered and also for individual images so there is no reason why it should not work for .php pages, but maybe someone who has tried it may come along and say it wont work

each page you want to disallow must be on a separate line

User-agent: *
Disallow: /nameofpage.php
Disallow: /pagename.php
Disallow: /page.php

Try it with one of your php pages first as a test and then add the rest

hope this helps

ncw164x

 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members