wordpress permalinks not working - htaccess seems ok but getting 404 error on pages

前端 未结 10 1217
[愿得一人]
[愿得一人] 2020-12-07 19:16

I updated the permalink structure to /%postname%/ and this updated my .htaccess with:

# BEGIN WordPress

RewriteEngine On
Rewri         


        
10条回答
  •  既然无缘
    2020-12-07 19:31

    If you are setting up a new or cloned site on ubuntu, remember to symlink the site configuration file e.g. /etc/apache2/sites-available/your-file.conf to the /etc/apache2/sites-enabled folder so apache loads it.


    Just run: sudo a2ensite your-file.conf, then sudo service apache2 reload.

    sudo a2dissite your-file.conf to remove symlink i.e. disable config.

提交回复
热议问题