The requested URL /about was not found on this server

前端 未结 20 1433
闹比i
闹比i 2020-12-23 00:05

The home page of my wordpress website seems to be displaying correctly but if you click through to any of the other pages I get the following error message:

         


        
20条回答
  •  萌比男神i
    2020-12-23 00:06

    Hie,

    Although late If anybody suffering from the similar issues here is what you can do to allow permalinks by modifying your virtual host file or whereever you are hosting your WP sites.

    So basically everything works fine - you set up permalinks to post and suddenly the url dissapears. You went to a lot of disscussion forums (Like me) tried a lot of modifying and got "Permission to server 403" errors or URL not found error. All you have to do is go to the host file, for example 000-default.conf if using a default virtual host or your config file inside sites-enabled,

    use in the directory section :

    
    Options Indexes FollowSymLinks
    AllowOverride All
    Require all granted
    
    

    Donot use the following inside directory

    Order allow,deny
    Allow from all
    

    The Order and Allow directives are deprecated in Apache 2.4.

    Likewise you can setup the directory in /etc/apache2/apache2.conf set the directory for your path and donot use the above - this will cause permission 403 error.

    In addition to that you will need to enable mod_rewrite for apache

提交回复
热议问题