我只有一个root/process.php
适用于多种语言的 .php ( ) 文件
root/en/command.htm
root/fr/command.htm
root/ru/command.htm
等等。但是,对于每个命令,我thankYou.htm
在同一个文件夹中都有一个:
root/en/thankYou.htm
root/fr/thankYou.htm
root/ru/thankYou.htm
在处理页面后如何重定向页面process.php
?
// redirect to a thank you page
header("Location: " .$_SERVER['HTTP_REFERRER']. "\thankYou.htm");
这不起作用:错误 404。通常,如果引荐来源是root/ru/command.htm
例如,那么 php 应该将用户发送到root/ru/thankYou.htm
etc。