作者:mobiledu2502885323 | 来源:互联网 | 2023-10-12 16:21
IamdevelopingaphpapplicationwithKohanaframeworkwhichenablesurlrewritingbydefault.我正在
I am developing a php application with Kohana framework which enables url rewriting by default.
我正在使用Kohana框架开发一个php应用程序,默认情况下可以重写URL。
I need to translate these rules defined in the htaccess file but I can't figure it out.
我需要翻译htaccess文件中定义的这些规则,但我无法弄清楚。
# Turn on URL rewriting
RewriteEngine On
# Installation directory
RewriteBase /kohana/
# Protect hidden files from being viewed
Order Deny,Allow
Deny From All
# 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]
Thanks in advance!
提前致谢!
1 个解决方案