• I have noticed in public_html in wp-content I have 2 index files. One is called backupsindex.php and was created in 2013 and has this inside:

    <?php
    // Silence is golden.

    and the other one is much older from 2011 and is called index.php and has the same inside just with the question mark on the end: `<?php
    // Silence is golden.
    ?>`

    I am very new to this, but I guess it should have the question on the end. Should I delete the one which is called backupsindex.php and has no the question mark on the end or can somebody advice what to do with this?

    Thank you very much,
    July

Viewing 2 replies - 1 through 2 (of 2 total)
  • The normal index.php file is fine, and it’s a good idea to leave it there. The other backupsindex.php doesn’t seem like it does much, but you might have a plugin or something that depends on it, so if you delete it be prepared if something doesn’t work exactly as expected. It’s easy to put it back anyway, so it’s worth a try.

    As far as the ending ?> on the file, in a purely PHP file that’s optional, and in some cases it’s recommended to not have it there because anything after it is regarded as output and can cause issues with setting HTTP headers and redirections. At it stands, both are 100% valid, and nothing to worry about.

    Thread Starter jronder

    (@villas-diani)

    Thank you so much catacaustic!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘2 index files’ is closed to new replies.