404 error after changing permalinks wordpress

前端 未结 5 889
一整个雨季
一整个雨季 2021-02-04 13:11

My site is a Wordpress-site created with PHP.

I have made changes in permalink default to postname. It works fine in Chrome and <

5条回答
  •  耶瑟儿~
    2021-02-04 13:36

    First put a .htaccess file in your /var/www/ folder and make it writable. Second, suppose your wordpress blog is in /var/www/blog folder then go to /etc/apache2/sites-available/ and make following changes in default file

    
        Options +ExecCGI 
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                allow from all
    
    
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                allow from all
    
    

    Now restart apache to make sure changes have taken effect. Hope it helps.

提交回复
热议问题