我使用CodeIgniter和.htaccess
来重写网址,但我希望它忽略index.html
。htaccess rewriterule ignore 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]
感谢所有帮助