url重写问题
嘿,这是我有问题的例子。我有一个链接:
<a href='/index.php'>link</a>
它将依次转到 domain.com/index.php
现在我该如何做,以便在 URL 重写后,它不会显示 index.html?
我知道我可以用“/”链接到文档根目录,但这对我来说并不适用于所有情况。所以一个简单的重写就很棒了!
Hey, here is the example I have a question about. I have a link:
<a href='/index.php'>link</a>
Which will in turn go to domain.com/index.php
Now how would I make is so that with URL rewrite, it does NOT display index.html after?
I know i can just link to document root with "/" but this is not going to work in all cases for me. So a simple rewrite would be awesome!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果你不能像@Pekka建议的那样影响链接,你也可以强制
you can also force if you can't influence the links like @Pekka suggested