当我点击wordpress admin的永久链接时,它会自动在根文件夹中创建.htaccess文件,然后wordpress站点停止与浏览器错误工作服务器错误500 I在httpd.conf中进行了以下设置,我的mod_rewrite按照php.ini显示工作。永久链接不能在Windows 7上的xampp/localhost服务器上工作
httpd.conf中设置
<Directory "E:/xampp/cgi-bin">
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
<Directory "E:/xampp/htdocs">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#options
# for more information.
#
Options All
#
# 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
#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
</Directory>
的.htaccess文件代码
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /xampp/ozi-tech/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /xampp/ozi-tech/index.php [L]
</IfModule>
# END WordPress
什么web服务器ü用来运行WordPress – rash111
:因为它是包含在XAMPP rash111 Apache服务器服务器 – Bilal
你看过apache错误日志吗? – soju