php仍在codeigniter中工作
各位开发者,我是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
中帮助我。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规则