<?php
// Silence is golden.
The folder is ../wp-content/index.php
Why have this file. What’s the purpose?
I suppose it’s in order to avoid invalid visit.
But why?
<?php
// Silence is golden.
The folder is ../wp-content/index.php
Why have this file. What’s the purpose?
I suppose it’s in order to avoid invalid visit.
But why?
Try to visit through the folder structure of your site from the browser:
http://example.com/wp-content/
You will see a blank page. That’s actually is the index.php
, and its content is very simple – a commented out PHP comment:
<?php
// Silence is golden.
Remove the file and visit the URL again. You will see the file structure completely. So your file structure is completely become naked.
That’s why the file is there. To hide the inner file structure whatever that be.
O, don’t forget to create the file again there. 🙂