Url rewriting 在sun web服务器7上重写url

Url rewriting 在sun web服务器7上重写url,url-rewriting,kohana,Url Rewriting,Kohana,我正在用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

我正在用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重写
重新启动发动机
#安装目录
大本营/科哈纳/
#保护隐藏文件不被查看
命令拒绝,允许
全盘否定
#保护应用程序和系统文件不被查看
重写规则^(?:应用程序|模块|系统)\b index.php/$0[L]
#允许直接显示现有的任何文件或目录
重写cond%{REQUEST_FILENAME}-F
重写cond%{REQUEST_FILENAME}-D
#将所有其他URL重写为index.php/URL
重写规则。*index.php/$0[PT]
提前谢谢

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

有一个(我在那里找到了链接)可能也很方便