我的config.php文件中有一个代码,
// If URL-Rewriting does not work then set
// define('BASE_PATH',BASE_DIR.'/index.php');
// If URL-Rewriting works, then leave the line below as is
define('BASE_PATH',BASE_DIR);这在我的本地主机上运行良好,但在我托管的服务器上不起作用,所以我制作了一个.htaccess文件并在其中编写了RewriteEngine On。还是不能工作。可能的问题是什么
发布于 2012-02-12 22:32:21
我假设你对你的服务器有一些ssh访问权限?尝试此命令:a2enmod rewrite
并将一些规则添加到.htaccess文件中。see this
https://stackoverflow.com/questions/9249502
复制相似问题