#Deny from all
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^(index\.php|assets|images|upload|uploads|html|robots\.txt)
RewriteRule ^(.*)$ index.php/$1 [L]
这是我当前的.htaccess文件,该站点位于一个名为clients的子域目录中。您可以在此处访问该站点:http : //clients.creditblitz.ca/
您指定的网址将重定向到404页面
http://clients.creditblitz.ca/authenticate
但是URL下面的访问重定向到200响应
http://clients.creditblitz.ca/index.php/authenticate
因此,请删除codeIgniter Framework配置文件中的index.php
$config['index_page'] = '';
并在htaccess编码下应用
RewriteEngine ON
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^(index\.php|css|images|robots\.txt)
RewriteRule .* index.php/$0 [PT,L]
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句