Codeigniter上的Ion Auth设置

时间:2015-06-17 20:01:26

标签: php .htaccess codeigniter

我按照说明在我的Codeigniter 3安装上设置了Ion Auth。

当我导航到:

127.0.0.1/nightmesh/auth/login

我实际上被重定向到:

http://127.0.0.1/nightmesh/127.0.0.1/nightmesh/auth/login

我的根目录中的.htaccess:

<IfModule mod_rewrite.c>
RewriteEngine On

#Checks to see if the user is attempting to access a valid file,
#such as an image or css document, if this isn't true it sends the
#request to index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
#This last condition enables access to the images and css folders, and the robots.txt file
RewriteCond $1 !^(index\.php|public|images|robots\.txt|css)
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>

关于如何避免这种情况的任何建议?

0 个答案:

没有答案