user44444444
user44444444

Reputation: 827

robots.txt file disallow root directory wordpress

now in wordpress there is a file named wp-config.php and it contains all the passwords to database. If i allow google bot to index the whole web folder without disallowing root folder will the wp-config.php file be indexed ?

Upvotes: 0

Views: 323

Answers (2)

user755673
user755673

Reputation: 339

No it won't I guess. allow google bot to index and check whether you can access the wp-config.php as third party user.

Upvotes: 0

Paul McMillan
Paul McMillan

Reputation: 20107

No it won't. The php will be executed when that file is viewed, and at the top, it has code which tells the server to spit out an empty page. Anyone who browses to that URL will see just a blank page. Verify this yourself...

Upvotes: 2

Related Questions