【发布时间】:2010-07-09 19:01:16
【问题描述】:
我有 Glassfish 3 服务器并添加了 Quercus 4.0.7 以便能够在其上运行 PHP 应用程序。一切都与它完美配合。现在我试图在我的服务器上运行Question2Answer 应用程序。我能够打开应用程序,但它不允许我从一个页面导航到另一个页面,因为他们正在使用 .htaccess 文件来重写 URL。我想知道在这种情况下我们如何重写 URL?
这是 Question2Answer 的 .htaccess 里面的内容:
DirectoryIndex index.php
RewriteEngine On
#RewriteBase /your-sub-directory
RewriteCond %{REQUEST_URI} ^(.*)//(.*)$
RewriteRule . %1/%2 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^.*$ index.php?qa-rewrite=$0&%{QUERY_STRING} [L]
你有什么解决办法吗?
【问题讨论】:
-
有趣的是,有人在你发帖数小时后几乎发布了 the same question。我想我要把另一个标记为重复。
标签: url-rewriting glassfish quercus question2answer