only default permalinks working wordpress others become 404 error

前端 未结 6 890
夕颜
夕颜 2020-12-11 23:21

My problem is in my wordpress site only default permalinks is working.. When I change permalinks all pages become not found.. only home page is showing.

When I chang

6条回答
  •  情歌与酒
    2020-12-12 00:26

    In case you are on Ubuntu, edit the file /etc/apache2/apache2.conf (here we have an example of /var/www):

    
            Options Indexes FollowSymLinks
            AllowOverride None
            Require all granted
    
    

    and change it to:

    
            Options Indexes FollowSymLinks
            AllowOverride All
            Require all granted
    
    

    also check Apache configuration file for your website /etc/apache2/sites-available/your_site.conf:

    
        AllowOverride None
    
    

    and change it to:

    
        AllowOverride All
    
    

    You need to do sudo a2enmod rewrite to enable module rewrite

    then,

    sudo service apache2 restart

    I hope this helps you!

提交回复
热议问题