把我的网站从apache服务器迁移到nginx服务器后,只有主页能用,我已经试过两次保存固定链接了,都没用。也许问题是.htaccess文件在nginx中不起作用。我希望固定链接能正常工作
sycxhyv71#
你试过wordpress默认的.htaccess文件了吗?
# BEGIN WordPress RewriteEngine On RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] # END WordPress
来源:https://wordpress.org/documentation/article/htaccess/
1条答案
按热度按时间sycxhyv71#
你试过wordpress默认的.htaccess文件了吗?
来源:https://wordpress.org/documentation/article/htaccess/