删除index.php后找不到页面
我想从我的网站上删除删除index.php后找不到页面,php,jquery,google-chrome,jquery-plugins,codeigniter-3,Php,Jquery,Google Chrome,Jquery Plugins,Codeigniter 3,我想从我的网站上删除index.php。我尝试了以下步骤,但仍然不起作用: $config[索引页面]='' 在.htaccess from system文件夹中添加了以下内容: 重新启动发动机 重写基/seotutor/ 重写cond%{REQUEST_FILENAME}-F 重写cond%{REQUEST_FILENAME}-D 重写规则^(.*)$index.php/$1[L] 在wamp apache中启用mod_重写 覆盖httd.conf中的所有内容 试试这个: 步骤:-1打开
index.php
。我尝试了以下步骤,但仍然不起作用:
$config[索引页面]=''代码>
- 在.htaccess from system文件夹中添加了以下内容:
重新启动发动机 重写基/seotutor/ 重写cond%{REQUEST_FILENAME}-F 重写cond%{REQUEST_FILENAME}-D 重写规则^(.*)$index.php/$1[L]
- 在wamp apache中启用mod_重写
- 覆盖httd.conf中的所有内容
//find the below code
$config['index_page'] = "index.php"
//replace with the below code
$config['index_page'] = ""
步骤:-2转到CodeIgniter文件夹并创建.htaccess
Path:
Your_website_folder/
application/
assets/
system/
.htaccess <——— this file
index.php
这将对您有所帮助。尝试以下方法:
步骤:-1打开文件夹“application/config”并打开文件“config.php”。在config.php文件中查找并替换以下代码
//find the below code
$config['index_page'] = "index.php"
//replace with the below code
$config['index_page'] = ""
步骤:-2转到CodeIgniter文件夹并创建.htaccess
Path:
Your_website_folder/
application/
assets/
system/
.htaccess <——— this file
index.php
这将对您有所帮助。您好,我尝试了此步骤,但仍不起作用,正在转到正确的页面。您好,我尝试了此步骤,但仍不起作用,正在转到正确的页面。