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

前端 未结 10 1100
[愿得一人]
[愿得一人] 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

    This is now solved. I hadn't enabled mod_rewrite. So I did this:

    $ sudo a2enmod rewrite
    Enabling module rewrite.
    To activate the new configuration, you need to run:
      service apache2 restart
    $ service apache2 restart
     * Restarting web server apache2                                                                              
    

提交回复
热议问题