kohana 伪静态的htaccess设置

来源:互联网 发布:视频相片制作软件 编辑:程序博客网 时间:2024/06/14 05:41
RewriteEngine On# Installation directoryRewriteBase /# Protect hidden files from being viewed<Files .*>   Order Deny,Allow   Deny From All</Files># Protect application and system files from being viewedRewriteRule ^(?:modules|front)\b.* index.php/$0 [L]RewriteRule ^admin/.* admin.php?%{QUERY_STRING} [PT]# Allow any files or directories that exist to be displayed directlyRewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-d# Rewrite all other URLs to index.php/URLRewriteRule .* index.php?/$0 [PT]#Set environmentSetEnv KOHANA_ENV "production
原创粉丝点击