Apache wordpress 设置固定链接 404问题以及站点地图不能加载问题
warning:
这篇文章距离上次修改已过432天,其中的内容可能已经有所变动。
环境:
ubuntu 20.04
Apache/2.4.41
解决方法
sudo a2enmod rewrite
复制提示的命令,执行命令。
2.输入命令
sudo vi /etc/apache2/apache2.conf
修改框柱的部分为All:

保存文件,退出文件。重启apache
service apache2 restart
成功。
如果报403错误
则去掉域名.conf文件里面的:

<Directory "/var/www/">
</Directory>