. htaccess的问题.我的网站不能注册和加载永远不会停止


.htaccess issue. My site cannot sign up and loading never stop

我从codecanyon购买了OKDating脚本,但开发人员从未显示支持他自己的脚本。我安装的网站和支持注册帐户第一次获得管理权限和注册过程不断加载,永不停止。有些人说,这是因为。htaccess问题,我没有任何想法来解决它。我使用AWS EC2服务器,站点名称为"www.chitthu.co"

您的ajax请求将转到"http://www.chitthu.co/user/create",但应该转到"http://www.chitthu.co/index.php/user/create"

为了防止这种情况,在URL中隐藏index.php。把下面的代码放到你的root .htaccess文件中。

对于5.2.6以上版本的PHP:

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

对于5.2.6以下版本的PHP:

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

mod_rewrite必须在PHP中启用