【问题标题】:url rewrite on sun web server 7sun web server 7上的url重写
【发布时间】:2010-09-08 09:34:45
【问题描述】:

我正在使用 Kohana 框架开发一个 php 应用程序,该框架默认启用 url 重写。

我需要翻译 htaccess 文件中定义的这些规则,但我无法弄清楚。

# Turn on URL rewriting
RewriteEngine On

# Installation directory
RewriteBase /kohana/

# Protect hidden files from being viewed
<Files .*>
 Order Deny,Allow
 Deny From All
</Files>

# Protect application and system files from being viewed
RewriteRule ^(?:application|modules|system)\b index.php/$0 [L]

# Allow any files or directories that exist to be displayed directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

# Rewrite all other URLs to index.php/URL
RewriteRule .* index.php/$0 [PT]

提前致谢!

【问题讨论】:

    标签: url-rewriting kohana


    【解决方案1】:

    Apache Migration document 可能有足够的信息让你走上正确的道路。

    有一个forum thread(我在其中找到了链接)可能也很方便。

    【讨论】:

      猜你喜欢
      • 2011-03-30
      • 1970-01-01
      • 2013-04-23
      • 2012-12-26
      • 1970-01-01
      • 2011-06-19
      • 2014-11-10
      • 2012-10-29
      相关资源
      最近更新 更多