Welcome to WebmasterWorld Guest from 54.163.68.15

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)

5+ Year Member



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 Sep 4, 2008 (gmt 0)

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



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)

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



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