2

我正在安装基于 codeigniter 的 cms FUEL CMS。我遵循了所有步骤。
但是当我试图在本地主机上打开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 文件。请告诉我我的安装设置中缺少什么。

4

3 回答 3

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

现在打开你的燃料文件夹,用“燃料 CMS 主索引文件”替换当前的 index.php 文件,然后它就可以工作了。在这个 index.php 中确保 INSTALL_ROOT 是正确的。从末端取出燃料。

所以应该是

define('INSTALL_ROOT', str_replace('\\', '/',realpath(dirname(__FILE__))).'/');
于 2015-04-27T08:19:46.020 回答
0

编辑您的根 .httaccess 然后将 RewriteBase 的值更改为斜杠。所以它应该看起来像这样

    RewriteBase / 
于 2016-03-14T22:45:15.890 回答
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'] = ""; 
于 2015-08-21T08:02:26.373 回答