Запрошенный URL / install / index не был найден на этом сервере - PullRequest
0 голосов
/ 24 марта 2019

при попытке доступа к моему сайту glinks.tk я перенаправляюсь в конфигурацию автоматически, но при переносе моего сайта на VPS Wemin с виртуальным хостом у меня возникают проблемы, я правильно размещаю файлы, но при доступе получаю следующее сообщение «Запрошенный URL / install / index не был найден на этом сервере.» Я перепробовал все, но не знаю, как его решить, я использую скрипт Mighty URL Shortener, и он использует два .htaccess один в корне и один в папке webroot.

.htaccess от root:

DirectoryIndex index.php

# No directory listings
IndexIgnore *

<IfModule mod_rewrite.c>
    RewriteEngine on

    # Uncomment the following line if your webserver's URL is not directly related to physical file paths.
    # Also uncomment it if you are on 1&1 hosting
    #RewriteBase /

    # Comment the following line if you have not a .well-known directory in the root folder.
    RewriteRule ^(\.well-known/.*)$ $1 [L]

    RewriteRule    ^$    /var/www/glinks/webroot/    [L]
    RewriteRule    (.*) /var/www/glinks/webroot/$1    [L]
</IfModule>

# BEGIN cPanel-generated php ini directives, do not edit
# Manual editing of this file may result in unexpected behavior.
# To make changes to this file, use the cPanel MultiPHP INI Editor (Home >> Software >> MultiPHP INI Editor)
# For more information, read our documentation (https://go.cpanel.net/EA4ModifyINI)
<IfModule php5_module>

</IfModule>
# END cPanel-generated php ini directives, do not edit

<Files 403.shtml>
order allow,deny
allow from all
</Files>

.htaccess из webroot:

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [L]
</IfModule>
...