403 Запрещено: у вас нет разрешения на доступ в Codeigniter - PullRequest
0 голосов
/ 07 июня 2018

Я пытаюсь запустить проект codeigniter на сервере wamp, но получаю следующую ошибку:

Запрещено У вас нет прав доступа к / ecommerce_app / application/ install / index на этом сервере.

Это файл моего проекта .htaccess:

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

URL для моего проекта: localhost / ecommerce_app / application / install /index

Пожалуйста, помогите решить мою проблему.

1 Ответ

0 голосов
/ 07 июня 2018
<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>
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...