我有一个问题,我想将我的网站迁移到具有nginx的服务器上,该网站已经开发了几年,我得到的错误是404。 我详细介绍了文件夹结构:
在根目录中找到第一个.htaccess
SELECT t1.Crt_Day, SUM(t1.Weight + ISNULL(t2.Weight,0)) SumWeightForDay
FROM dbo.TestOptions AS t1
LEFT
JOIN dbo.TestOptions AS t2
ON t2.Crt_Day < t1.Crt_Day
AND (t2.Lc_Day > t1.Crt_Day
OR t2.IsActive = 1
)
GROUP BY t1.Crt_Day
在酒吧内找到第二个.htaccess
RewriteEngine on
RewriteRule ^(.*) pub/$1 [L]
我共享该站点的Nginx配置
Options -MultiViews
RewriteEngine On
Options -Indexes
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^(.+)$ index.php?url=$1 [QSA,L]