Permalinks in Wordpress - Page not found

前端 未结 6 701
误落风尘
误落风尘 2021-01-01 03:29

I\'ve been searching for hours but haven\'t found anything that seems to be able to solves this issue.

Here\'s the scenario:

I\'m making a wp theme based on

6条回答
  •  失恋的感觉
    2021-01-01 04:25

    Also see Permalinks on WordPress (Amazon EC2)

    I had the same problem, but the author in the above link suggested to do three things (it worked for me!):

    Go to /etc/httpd/conf and edit httpd.conf

    
        Options FollowSymLinks
        AllowOverride All
    
    

    Change also AllowOverride if it is set to None

    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    #   Options FileInfo AuthConfig Limit
    #
        AllowOverride All
    

    I you haven’t created it yet, place in the root directory of your wordpress installation a .htaccess file with the following contents:

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

提交回复
热议问题