0

我正在我的服务器上设置一些东西,

http://adamcyber.net/talentmasterdemo/

如果我复制数据库和应用程序并将其运行到本地主机,则将配置更改为本地主机设置(如路径和子目录)一切正常。但是当我将它上传到服务器 adamcyber.net 时。登录页面工作正常,但是当我使用凭据登录时。它进入重定向的无限循环。所以Firefox显示错误。到目前为止,我发现这是 htaccess 问题,但我不确定 y htaccess 是否在 localhost 上运行而不在服务器上运行,配置为正确运行 htaccess,因此在运行 htaccess 时没有问题作为其他站点服务器正在正确运行 htaccess。下面是 htaccess 文件代码。

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule    (.*) index.php/$1 [L]

我被困在这里。任何帮助将不胜感激。

4

1 回答 1

0

试试这个

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
于 2012-06-13T05:38:14.093 回答