Php 403禁止:你不';我没有进入Codeigniter的权限
我试图在wamp服务器中运行codeigniter项目,但出现以下错误: 禁止您没有访问权限 /此服务器上的电子商务应用程序/应用程序/安装/索引 这是我的project.htaccess文件:Php 403禁止:你不';我没有进入Codeigniter的权限,php,codeigniter,codeigniter-2,Php,Codeigniter,Codeigniter 2,我试图在wamp服务器中运行codeigniter项目,但出现以下错误: 禁止您没有访问权限 /此服务器上的电子商务应用程序/应用程序/安装/索引 这是我的project.htaccess文件: Deny from all <FilesMatch "\.(gif|jpe?g|png|css|js)$"> Order allow,deny Allow from all </FilesMatch> Deny from all 命令允许,拒绝 通融 我的项目的Url:loc
Deny from all
<FilesMatch "\.(gif|jpe?g|png|css|js)$">
Order allow,deny
Allow from all
</FilesMatch>
Deny from all
命令允许,拒绝
通融
我的项目的Url:localhost/ecommerce\u app/application/install/index
请帮助解决我的问题。
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /app_subdirectory/
RewriteCond $1 !^(index\.php|images|robots\.txt)
#Removes access to the system folder by users.
RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.*)$ /index.php/$1 [L]
#This snippet prevents user access to the application folder
RewriteCond %{REQUEST_URI} ^application.*
RewriteRule ^(.*)$ /index.php/$1 [L]
#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 ^(.*)$ index.php/$1 [L]
</IfModule>
<IfModule !mod_rewrite.c>
ErrorDocument 404 /index.php
</IfModule>
重新启动发动机
重写base/app_子目录/
1美元^(索引\.php | images | robots\.txt)
#删除用户对系统文件夹的访问权限。
重写COND%{REQUEST_URI}^系统*
重写规则^(.*)$/index.php/$1[L]
#此代码段阻止用户访问应用程序文件夹
重写cond%{REQUEST_URI}^应用程序*
重写规则^(.*)$/index.php/$1[L]
#检查用户是否试图访问有效文件,
#例如图像或css文档,如果这不是真的,它会发送
#请求index.php
重写cond%{REQUEST_FILENAME}-F
重写cond%{REQUEST_FILENAME}-D
重写规则^(.*)$index.php/$1[L]
ErrorDocument 404/index.php
你不是在告诉apache拒绝所有人的所有文件,除了以gif、jpeg、png、css和js结尾的文件吗?或者我误解了。如果你在linux上运行wamp服务器,请检查文件夹permission@LomeshKelwadkar当前位置是windows,我正在使用wamp