[英]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.