htaccess重写规则
我目前有这条规则,我希望页面只呈现我的静态内容。
RewriteRule ^videos\/coverage\/view\/236159\-([0-9a-zA-Z-]+) http: //website.com/static/236159.html [NC]
然而,这不起作用。它适用于 L 标签,但 URL 不同:
RewriteRule ^videos\/coverage\/view\/236159\-([0-9a-zA-Z-]+) http: //website.com/static/236159.html [L, NC]
我的目标是保持 URL 相同但内容不同。谁能指出需要哪些标志才能使其正常工作?
谢谢!
I currently have this rule where I want the page to just render my static content.
RewriteRule ^videos\/coverage\/view\/236159\-([0-9a-zA-Z-]+) http: //website.com/static/236159.html [NC]
However, this doesn't work. It works with a L tag but then the URL is different:
RewriteRule ^videos\/coverage\/view\/236159\-([0-9a-zA-Z-]+) http: //website.com/static/236159.html [L, NC]
My goal is to keep the URL the same but the content different. Can anyone point out to what flags are needed in order to get this working properly?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您位于同一台计算机上,请使用相对 URI:
If you stay on the same machine, use relative URIs: