The requested URL /about was not found on this server

前端 未结 20 1401
闹比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:08

    There is a trusted answer on the Wordpress website:

    Where's my .htaccess file?

    WordPress's index.php and .htaccess files should be together in the directory indicated by the Site address (URL) setting on your General Options page. Since the name of the file begins with a dot, the file may not be visible through an FTP client unless you change the preferences of the FTP tool to show all files, including the hidden files. Some hosts (e.g. Godaddy) may not show or allow you to edit .htaccess if you install WordPress through the Godaddy Hosting Connection installation.

    Creating and editing (.htaccess)

    If you do not already have a .htaccess file, create one. If you have shell or ssh access to the server, a simple touch .htaccess command will create the file. If you are using FTP to transfer files, create a file on your local computer, call it 1.htaccess, upload it to the root of your WordPress folder, and then rename it to .htaccess.

    You can edit the .htaccess file by FTP, shell, or (possibly) your host's control panel.

    The following permalink rewrite code should be included in your .htaccess file (since WordPress 3.0):

    # BEGIN WordPress
    
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    
    # END WordPress
    

    *Taken from here.

提交回复
热议问题