我已经阅读了Wordpress网站上的说明,并在这里阅读了一些很长的帖子,但没有任何特定于此环境的内容:
Mac OS X High Sierra未注释LoadModule rewrite_module libexec/apache2/mod_rewrite.so
在里面httpd.conf
2) 创建了新的.htaccess
在我的wordpress根目录(权限666)中:
# BEGIN WordPress
# The directives (lines) between BEGIN WordPress and END WordPress are
# dynamically generated, and should only be modified via WordPress filters.
# Any changes to the directives between these markers will be overwritten.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /wordpress/
RewriteRule ^index\\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /wordpress/index.php [L]
</IfModule>
# END WordPress
3)更改了httpd。形态
<Directory />
AllowOverride All
Require all Granted
</Directory>
我重新启动了apache。关闭并重新启动Mac。当我将permalinks设置为Post name时,仍然得到404。
我错过了什么???