我正在安装基于codeigniter的cms FUEL CMS。我遵循了所有步骤。
但是当我想在localhost上打开http://localhost/ci_cms/fuel
时,它会将我重定向到http://localhost/xxamp/
但如果键入http://localhost/ci_cms/index.php/fuel/login,那么它正在运行
这是我在http://localhost/ci_cms/fuel/
中的index.php中得到的<?php
header('Location: start');
exit();
这里没有htaccess文件。请告诉我在我的安装设置中缺少的内容。
答案 0 :(得分:0)
http://docs.getfuelcms.com/installation/installing
提取后下载fuelCms。你有以下文件夹结构
assets -> Folder
fuel -> Folder
.gitignore
.htaccess
index.php -> Fuel CMS Master Index File
README.md
robots.txt
现在,在您的opencart结构中,现在结构应该是
admin
catalog
download
fuel -> Copied folder from fuel CMS
现在打开你的燃料文件夹用“Fuel CMS主索引文件”替换当前的index.php文件然后它可以工作。在这个index.php中确保INSTALL_ROOT是正确的。从末端移走燃料。
所以它应该是
define('INSTALL_ROOT', str_replace('\\', '/',realpath(dirname(__FILE__))).'/');
答案 1 :(得分:0)
将此添加到.htaccess
< IfModule mod_rewrite.c >
RewriteEngine on
RewriteCond $0 !^(index\.php|css|js|images|robots\.txt)
RewriteRule .* index.php/$0 [L]
< /IfModule >
并在system / application / config / config.php中更改。
$config['index_page'] = "";
答案 2 :(得分:0)
编辑你的根.httaccess 然后将RewriteBase的值更改为斜杠。所以看起来应该是这样的
RewriteBase /