【发布时间】:2011-03-15 01:33:45
【问题描述】:
我将我的 wordpress (3.0) 博客移至我的专用服务器。
只有一件事坏了:
如果我将 worpress 中的 url 设置为
http://wwww.example.com/page?id=3
页面显示正确
如果我将 URL 设置为:
http://wwww.example.com/about/
http://www.example.com/services/
它以 404 not found 页面结束!!
如果有帮助,这是我的虚拟主机:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName www.example.fr
DocumentRoot /var/www/example
<Directory /var/www/example>
Options -Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access-example.log combined
ErrorLog /var/log/apache2/error-example.log
ServerSignature Off
</VirtualHost>
谢谢你
【问题讨论】:
-
听起来像是一个 mod_rewrite 问题 - 你在使用 wordpress 永久链接吗?你签入 .htaccess 文件了吗?
标签: wordpress url-rewriting url-routing http-status-code-404