Welcome to WebmasterWorld Guest from 23.22.220.37

Forum Moderators: goodroi

Message Too Old, No Replies

Disallow .php in root folder but allow in sub.

     
10:14 pm on Sep 1, 2008 (gmt 0)

Junior Member

5+ Year Member

joined:July 21, 2008
posts: 98
votes: 0


Is it possible to disallow any urls ending in .php in the root directory eg Disallow: /*.php$ but allow them to be indexed in a sub directory?
1:13 pm on Sept 4, 2008 (gmt 0)

Administrator from US 

WebmasterWorld Administrator goodroi is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:June 21, 2004
posts:3080
votes: 67


Welcome to WebmasterWorld mysticalsock!

I am not sure you can use wildcards to block .php files for only the root. I know you could add a meta robots tag manually to each file but that might not be practical.

5:19 pm on Oct 21, 2008 (gmt 0)

Senior Member

WebmasterWorld Senior Member g1smd is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:July 3, 2002
posts:18903
votes: 0


You would need to individually list each and all of the files to be disallowed.
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members