Used faster string search function as much as possible.
Added a utility function for 301 redirect.
config.php is renamed to config.default.php which should be copied and renamed to config.php by user.
site.config.php is renamed to site.config.default.php which should be copied and renamed to site.config.php by user.
Check prerequisites config.php and site.config.php