我已经安装了社区身份验证,但是经过数小时的琐事和错误之后,我仍然无法使其正常运行!问题是,在创建测试用户并尝试登录后,我将重定向到一个无意义的URL。假设我的测试网站位于http://test.webintenerife.com。在这里,我放置了一个仅用于测试社区身份验证的应用程序。我遵循了所有安装步骤,并成功创建了测试用户。
我的配置base_url是'test.webintenerife.com'。尝试登录http://test.webintenerife.com/Examples/login,但重定向网址为http://test.webintenerife.com/Examples/test.webintenerife.com/test.webintenerife.com/login?redirect=Examples / simple_verification
我的.htaccess是:
` #MAKE SURE TO LEAVE THE NEXT TWO LINES HERE.
#BEGIN DENY LIST --
#END DENY LIST --
DirectoryIndex index.php
#Rewrite engine
RewriteEngine On
#condition with escaping special chars
RewriteCond $1 !^(index\.php|admin|robots\.txt|favicon\.ico)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ ./index.php?$1 [L,QSA]`
我真的不明白我在做什么错...
我的base_url错误,因为这是我第一次使用CI。它应该是“ http://test.webintenerife.com/ ” :-(
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句