Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/codeigniter/3.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
Codeigniter.htaccess无法写入 #检查用户是否试图访问有效文件, #例如图像或css文档,如果这不是真的,它会发送 #请求index.php 重写cond%{REQUEST_FILENAME}-F 重写cond%{REQUEST_FILENAME}-D 重写规则^(.*)$main.php/$1[L]_.htaccess_Codeigniter_Url - Fatal编程技术网

Codeigniter.htaccess无法写入 #检查用户是否试图访问有效文件, #例如图像或css文档,如果这不是真的,它会发送 #请求index.php 重写cond%{REQUEST_FILENAME}-F 重写cond%{REQUEST_FILENAME}-D 重写规则^(.*)$main.php/$1[L]

Codeigniter.htaccess无法写入 #检查用户是否试图访问有效文件, #例如图像或css文档,如果这不是真的,它会发送 #请求index.php 重写cond%{REQUEST_FILENAME}-F 重写cond%{REQUEST_FILENAME}-D 重写规则^(.*)$main.php/$1[L],.htaccess,codeigniter,url,.htaccess,Codeigniter,Url,这是我的.htaccess,但我没有得到正确的链接 每当我点击一个没有index.php的链接时,它就会重定向到wamp服务器主页 <IfModule mod_rewrite.c> # Checks to see if the user is attempting to access a valid file, # such as an image or css document, if this isn't true it sends the # request to index.

这是我的.htaccess,但我没有得到正确的链接

每当我点击一个没有index.php的链接时,它就会重定向到wamp服务器主页

<IfModule mod_rewrite.c>
# Checks to see if the user is attempting to access a valid file,
# such as an image or css document, if this isn't true it sends the
# request to index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ main.php/$1 [L]
</IfModule>

你必须解释你的问题比那更好。发生了什么事?什么事情没有发生,你会预料到的?
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /

    RewriteCond %{REQUEST_URI} ^sys.*
    RewriteRule ^(.*)$ /index.php?/$1 [L]

    RewriteCond %{REQUEST_URI} ^app.*
    RewriteRule ^(.*)$ /index.php?/$1 [L]

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>
<IfModule !mod_rewrite.c>
    ErrorDocument 404 /index.php
</IfModule>
$config['index_page'] = '';