Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/apache/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
php仍在codeigniter中工作_Php_Apache_.htaccess_Codeigniter_Mod Rewrite - Fatal编程技术网

php仍在codeigniter中工作

php仍在codeigniter中工作,php,apache,.htaccess,codeigniter,mod-rewrite,Php,Apache,.htaccess,Codeigniter,Mod Rewrite,各位开发者,我是codeigniter的新手,请在中帮助我。htaccess这是我的文件 下面是我的config/config.php $config['base_url'] = 'pctci' $config['index_page'] = ''; $config['uri_protocol'] = 'AUTO'; (1("index.php/home/home1" ))) (2(echo base_url('/home/home1'))) 下面是我的查看页面,即main.php $c

各位开发者,我是codeigniter的新手,请在
中帮助我。htaccess
这是我的文件

下面是我的
config/config.php

$config['base_url'] = 'pctci'

$config['index_page'] = '';

$config['uri_protocol'] = 'AUTO';
(1("index.php/home/home1" )))
(2(echo base_url('/home/home1')))
下面是我的查看页面,即
main.php

$config['base_url'] = 'pctci'

$config['index_page'] = '';

$config['uri_protocol'] = 'AUTO';
(1("index.php/home/home1" )))
(2(echo base_url('/home/home1')))
这里的问题是链接1和2都在工作..我不想工作 “index.php/home/home1”

下面是我的
.htaccess
注意:我已将下载的codeigniter重命名为pctci

<IfModule mod_rewrite.c>

RewriteEngine On

RewriteBase /pctci/

RewriteCond $1 ^(application|system|private|logs)


RewriteRule ^(.*)$ index.php/access_denied/$1 [PT,L]

RewriteCond $1 ^(index\.php|robots\.txt|favicon\.ico|public|assets|css|js|images)

RewriteRule ^(.*)$ - [PT,L]

RewriteRule ^(.*)$ index.php/$1 [PT,L]
</IfModule>

重新启动发动机
重写BASE/pctci/
重写第二个$1^(应用程序|系统|专用|日志)
重写规则^(.*)$index.php/access_denied/$1[PT,L]
重写成本$1^(索引\.php | robots\.txt | favicon\.ico |公共|资产| css | js |图像)
重写规则^(.*)$-[PT,L]
重写规则^(.*)$index.php/$1[PT,L]

那么允许的
index.php
链接到底有什么危害呢?检查这个问题并回答我不知道是否有危害……但我想严格遵守CI规则