【发布时间】:2012-08-31 23:04:27
【问题描述】:
当我从 wordpress 管理员点击永久链接时,它会自动在根文件夹中创建 .htaccess 文件,然后 wordpress 站点停止使用浏览器错误 服务器错误 500 我在 httpd 中进行了以下设置。 conf 和我的 mod_rewrite 正在按照 php.ini 显示工作。
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
【问题讨论】:
-
你使用什么网络服务器来运行 wordpress
-
:rash111 apache 服务器,因为它包含在 xampp 服务器中
-
你看过apache错误日志了吗?
-
你想删除 index.php 或其他任何东西
标签: wordpress .htaccess xampp permalinks