我正在使用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]
Run Code Online (Sandbox Code Playgroud)
谢谢你的帮助