我的地址栏有一个问题(在浏览器中).我网站的主页网址如下:http://localhost/Website/index.php
http://localhost/Website/index.php
如果我写.../Website/home.php它加载home.php页面.我认为如果知道地址,任何人都可以访问他们想要的任何网页,这是不安全的.我想阻止地址栏中的自动URL重定向.请任何人帮我制作,如果有人写.../home.php地址,它会将浏览器重定向index.php为默认页面.
.../Website/home.php
home.php
.../home.php
index.php
php redirect
php ×1
redirect ×1