當我點擊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