test-php-rest-api-user/template/route.php

8 lines
233 B
PHP
Raw Permalink Normal View History

2024-08-10 00:30:13 +08:00
<?php
if(__URI__ == '/' || in_array(__URL__[0], ['index', 'route', 'header', 'footer']))
header('Location: /main');
elseif(file_exists(__TD__.__URL__[0].'.php'))
require __TD__.__URL__[0].'.php';
else
header('Location: /');