当尝试访问我的网站glinks.tk时,我会自动重定向到配置,但是将我的网站传输到带有虚拟主机的VPS Wemin时,我遇到了问题,我正确放置了文件,但是在访问时我收到以下消息“在此服务器上未找到请求的URL / install / index。”我已经尝试了所有方法,但不知道如何解决,我使用的脚本是Mighty URL Shortener,它在根目录中使用两个.htaccess。和一个在webroot文件夹中。
.htaccess来自根:
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>
从Webroot .htaccess:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>