我在 Oracle iPlanet WebServer 的 obj.conf 文件中进行了 URL 重定向。
obj.conf 中的条目
NameTrans fn="redirect" from="/Test/p" url=https://www.example01.com/myredirection.html
所以当我点击https://www.example.com/Test/p时,它会重定向到https://www.example01.com/myredirection.html。这很好。但是在我的“Test”文件夹中,有一些以“p”开头的 html 页面,并且这些页面也正在发生重定向。
像https://www.example.com/Test/pDemo.html也重定向到https://www.example01.com/myredirection.html。(我不想要)
我希望当用户键入https://www.example.com/Test/p时,才会发生重定向。你能建议一下吗?