我不确定我需要搜索什么,因为即使我描述它也不知道它叫什么,所以请不要告诉我我没有做我的研究,我做了。老实说,我做到了。
我怎样才能使.php之类的* profile.php可以重定向到文件夹。例如:
profile.php = example.com/profile.php/ = example.php / user / =然后是一个文件夹= example.com/user/info /
我拥有它以便$ _GET ['user']通过.htaccess将profile.php?username = $ 1重定向到“Brian”。但它是否有可能让它像profile.php /文件夹?
答案 0 :(得分:0)
查看$_SERVER['REQUEST_URI']