为什么apache无视我的[L]旗帜? 我希望转到myhost.com/wtf并将其带到myhost.com/mediawiki/index.php, 而浏览器中的URL 不会更改。 问题是浏览器网址正在发生变化,令人沮丧。
这是我的简单测试规则: RewriteEngine On RewriteRule ^/wtf.*$ /mediawiki/index.php [L]
我确保www,www / html或www / html / mediawiki中没有.htaccess文件。 我已尝试使用此处建议的[END]标志。 我在httpd.conf中没有任何其他重写规则。 怎么可能出错?
PS。 我诅咒谁把阿帕奇写到了地狱的深处。
Why is apache ignoring my [L] flag? I would expect to go to myhost.com/wtf and be taken to myhost.com/mediawiki/index.php without the URL in the browser changing. The problem is that the browser url IS changing, and its maddeningly frustrating.
Here's my simple test rule: RewriteEngine On RewriteRule ^/wtf.*$ /mediawiki/index.php [L]
I've ensured that there are no .htaccess files in www, www/html, or www/html/mediawiki. I've tried using the [END] flag as suggested here. I don't have any other rewrite rules in httpd.conf. What could be going wrong?
PS. I curse whoever wrote apache to the depths of hell.
最满意答案
您正在省略Apache配置的其余部分,或者更有可能的是,wiki正在尝试确保未配置为您想要的规范URL。
You're omitting the rest of your Apache config or, more likely, the wiki is trying to ensure a canonical URL which isn't configured to the one you want.
更多推荐
发布评论