The requested URL /about was not found on this server

前端 未结 20 1198
闹比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条回答
  • 2020-12-23 00:25

    I am working on MacOS, following operation solved my problem:

    I copied from : https://akrabat.com/setting-up-php-mysql-on-os-x-10-7-lion/

    cd /etc/apache2

    Give write permission the config file to root: sudo chmod u+w httpd.conf sudo vim httpd.conf

    Find #LoadModule php5_module libexec/apache2/libphp5.so

    and remove the leading #

    Find #LoadModule rewrite_module libexec/apache2/mod_rewrite.so

    and remove the leading #

    Find AllowOverride None within the section and change to AllowOverride All so that .htaccess files will work.

    Change permissions back: sudo chmod u-w httpd.conf

    Restart Apache by running following in terminal:

    sudo apachectl restart

    0 讨论(0)
  • 2020-12-23 00:30

    change only .htaccess:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress
    
    0 讨论(0)
提交回复
热议问题