【发布时间】:2012-01-16 17:43:40
【问题描述】:
我正在使用 CodeIgniter 和 .htaccess 重写 URL,但我希望它忽略 index.html。
这样我们就可以随时上传index.html,因为这将是一个临时登陆页面。通过index.php 上的主站点链接。
这是当前在.htaccess 中的内容,我已将服务器的目录索引设置为index.html index.php
RewriteEngine on
RewriteCond $1 !^(index\.html|index\.php|js|img|fonts|data|css|uploaded|mobile_devices|audioplayer|emails|robots\.txt|archive_blog)
RewriteRule ^(.*)$ /index.php/$1 [L]
感谢您的帮助
【问题讨论】:
标签: .htaccess codeigniter mod-rewrite codeigniter-2