【问题标题】:oxwall .htaccess牛墙.htaccess
【发布时间】:2012-10-18 09:40:29
【问题描述】:

这是我的 .htaccess 文件

Options +FollowSymLinks
RewriteEngine On

AddEncoding gzip .gz
AddEncoding gzip .gzip
<FilesMatch "\.(js.gz|js.gzip)$">
  ForceType text/javascript
</FilesMatch>
<FilesMatch "\.(css.gz|css.gzip)$">
  ForceType text/css
</FilesMatch>

RewriteCond %{REQUEST_URI} .*/http-bind
RewriteRule (.*) /http-bind [L]

RewriteCond %{REQUEST_URI} !^/index\.php
RewriteCond %{REQUEST_URI} !/ow_updates/index\.php
RewriteCond %{REQUEST_URI} !/ow_updates/
RewriteCond %{REQUEST_URI} !/ow_cron/run\.php
RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.xml|\.feed|robots\.txt|\.raw|/[^.]*)$  [NC]
RewriteRule (.*) index.php

Oxwall 版本 1.4.1。当我浏览到 localhost 时,它会将我重定向到 localhost/install/requirements/ 并显示消息 - 在此服务器上找不到请求的 URL /install/requirements。 当我浏览到 localhost/index.php 安装开始但安装后 oxwall 无法正常工作。

【问题讨论】:

  • “版本 1.4.1”是哪个软件的?阿帕奇?

标签: apache .htaccess mod-rewrite oxwall


【解决方案1】:

“在此服务器上找不到请求的 URL /install/requirements。”

我猜你需要先在你的服务器上activate mod_rewrite

【讨论】:

  • 我认为问题出在 .htaccess 文件中
  • 如果它是 Oxwall 默认的 .htaccess,它适用于许多其他用户,那么这不是问题……
  • 是的。这是一个默认值。我总是对 .htaccess 文件有疑问。我检查 httpd.conf 和 mod_rewrite 是 ON
  • 我从未见过在 httpd.conf 中启用了 mod_rewrite 的 Apache 版本。应该存在一个符号链接:/etc/apache2/mods-enabled/rewrite.load -&gt; ../mods-available/rewrite.load;如果不使用sudo a2enmod rewrite 启用该模块。如果如您所写,.htaccess 文件总是有问题,您真的应该首先检查您的服务器设置。还要检查 Apache error.log
  • 我发现了问题。我将 AllowOverride None 更改为 AllowOverride All
【解决方案2】:
  1. 在 Web 服务器中启用 mod_rewrite。
  2. 将 Oxwall 文件和文件夹保存在 Web 根目录中。
  3. 试试这个网址:localhost/install。

这对我有用。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2013-02-21
    • 1970-01-01
    • 1970-01-01
    • 2019-12-19
    • 2020-09-28
    • 2014-06-02
    • 2013-10-17
    • 2017-05-05
    相关资源
    最近更新 更多