apache_conf codeigniter htaccess
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了apache_conf codeigniter htaccess相关的知识,希望对你有一定的参考价值。
DirectoryIndex index.php
RewriteEngine on
RewriteBase /
RewriteRule ^services/ registry/ [R=301,L]
RewriteCond $1 ^(css|img|js|less|lib|uploads|shared)
RewriteRule ^assets/(.*?)/(.*)$ assets/$1/$2 [L]
RewriteRule ^assets/(.*?)/(.*)$ applications/portal/$1/assets/$2 [L]
RewriteCond $1 ^(registry|roles|apps|developer)
RewriteCond $2 ^(css|img|js|less|lib)
RewriteRule ^(.*?)/assets/(.*?)/(.*)$ assets/$2/$3 [L]
RewriteCond $1 !^applications/.*/
RewriteRule ^(.*?)/assets/(.*?)/(.*)$ applications/$1/$2/assets/$3 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !(.*)/$
RewriteRule ^(.*)$ $1/ [L]
RewriteCond $1 !^(index\.php|robots\.txt|favicon\.ico|legacy|googledocverificationidfile\.html)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*?)/(.*)$ ./index.php?/$2&app=$1 [L,QSA]
以上是关于apache_conf codeigniter htaccess的主要内容,如果未能解决你的问题,请参考以下文章
apache_conf .Itaccess for CodeIgniter
apache_conf 从codeigniter中删除index.php
apache_conf Codeigniter通过HHVM和FastCGI在Centos 6.4上运行
apache_conf CI:使用mod_rewrite进行CodeIgniter的简单.htaccess
apache_conf CI:使用mod_rewrite进行CodeIgniter的简单.htaccess
将日期插入数据库时出现 SQL 语法错误(框架:codeigniter)