我可以访问localhost上的主页,但无法访问我添加的页面。显示404错误。
我的问题是:https://stackoverflow.com/questions/12311737/permalinks-is-not-working-in-xampp-localhost-server-on-windows-7但在这里重新发布,因为在该链接中没有发布正确的答案。
httpd.conf SETTINGS
<Directory />
Options FollowSymLinks
AllowOverride All
Order deny,allow
Deny 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 Indexes FollowSymLinks Includes ExecCGI
Options Indexes FollowSymLinks
#
# 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 FILE CODE
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /perms/dev/
RewriteRule ^index\\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /perms/dev/index.php [L]
</IfModule>
# END WordPress
<小时>
mod rewrite also enabled LoadModule rewrite_module modules/mod_rewrite.so