我这样做是为了重定向到一个页面header('location: ../index.php');
。
但是在重定向之后我的URL变成这样somedomain.com/index.php.
如何使它只是somedomain.com?
试试这个:
<?php header('location: /'); ?>
我这样做是为了重定向到一个页面header('location: ../index.php');
。
但是在重定向之后我的URL变成这样somedomain.com/index.php.
如何使它只是somedomain.com?
试试这个:
<?php header('location: /'); ?>