[英]403 Forbidden : You don't have permission to access in Codeigniter
我正在尝试在wamp服务器中运行codeigniter项目,但出现以下错误:
禁止您无权访问此服务器上的/ ecommerce_app / application / install / index。
这是我的项目.htaccess文件:
Deny from all
<FilesMatch "\.(gif|jpe?g|png|css|js)$">
Order allow,deny
Allow from all
</FilesMatch>
我的项目的网址:localhost / ecommerce_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>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.