简体   繁体   English

403 Forbidden:您无权访问Codeigniter

[英]403 Forbidden : You don't have permission to access in Codeigniter

I am trying to run a codeigniter project in wamp server but i'm getting following error : 我正在尝试在wamp服务器中运行codeigniter项目,但出现以下错误:

Forbidden You don't have permission to access /ecommerce_app/application/install/index on this server. 禁止您无权访问此服务器上的/ ecommerce_app / application / install / index。

This is my project .htaccess file: 这是我的项目.htaccess文件:

Deny from all
<FilesMatch "\.(gif|jpe?g|png|css|js)$">
Order allow,deny
Allow from all
</FilesMatch>

Url for my project: localhost/ecommerce_app/application/install/index 我的项目的网址:localhost / ecommerce_app / application / install / index

Please help to solve my issue. 请帮助解决我的问题。

<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.

相关问题 403 Forbidden 您无权访问此资源 - 403 Forbidden You don't have permission to access this resource 403禁止访问:您无权访问 - 403 Forbidden : You don't have permission to access 403 Forbidden:您无权在wordpress中访问 - 403 Forbidden : You don't have permission to access in wordpress (403) 禁止。 您无权访问此资源 - (403) Forbidden. You don't have permission to access this resource MacOS XAMPP Access Forbidden Error 403 - 您无权访问请求的目录 - MacOS XAMPP Access Forbidden Error 403 - You don't have permission to access the requested directory OS X(10.9.1)本地主机403禁止您无权访问此服务器上的/ - OS X (10.9.1) localhost 403 Forbidden you don't have permission to access / on this server Laravel 403 Forbidden:您无权在生产环境中访问此服务器上的/index.html - Laravel 403 Forbidden: You don't have permission to access /index.html on this server in production Symfony app 403禁止错误:您无权访问此服务器上的/ - Symfony app 403 Forbidden error: You don't have permission to access / on this server PHPS 源文件 - 403 Forbidden 您无权访问此资源 - PHPS source file - 403 Forbidden You don't have permission to access this resource AWS Elastic Bean Stalk,错误 403 Forbidden “您无权访问此资源。” - AWS Elastic Bean Stalk, Error 403 Forbidden “You don't have permission to access this resource.”
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM