我正在将一个代码点火器应用程序部署到由第三方apache服务器托管的子域上。当访问页面时,它会不断刷新,然后浏览器告诉我发生了重定向循环。我知道这与Apache conf设置和我使用的自定义.htaccess文件有关,但我不知道如何修复它
当前.htaccess代码:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php [L]
尝试另一个.htaccess
:
RewriteEngine on
RewriteCond $1 !^(index'.php|robots'.txt)
RewriteRule ^(.*)$ /index.php?/$1 [L]
如果没有-尝试将最后一行更改为
RewriteRule ^(.*)$ /index.php/$1 [L]
此外,请确保已将config.php中的$config['index_page']
设置为''