renaming admin.php

2 posts by 2 authors in: Forums > CMS Builder
Last Post: January 8, 2016   (RSS)

By gord - January 8, 2016

Hi,

Yet another (brief) post about renaming admin.php:

After renaming the file, the redirect from index.php no longer works.  Not sure which version my copy of the file originally came from, but it contains the following:

<?php if (file_exists('admin.php')): ?>
  <meta http-equiv="REFRESH" content="0; URL=admin.php">
<?php endif ?>

I'm wondering if I should replace this with the new filename (or alternatively in php with a header redirect) -- or would this negate the benefit of having renamed the file in the first place?

Gord