文档下载 文档下载导航
设为首页 | 加入收藏
搜索 请输入内容:  
 导航当前位置: 文档下载 > 所有分类 > IT/计算机 > APMServ伪静态设置
侵权投诉

APMServ伪静态设置

在本地调试的wordpress在跳转页面的时候出现如下错误代码:

Object not found!
The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error.

If you think this is a server error, please contact the webmaster.

Error 404
192.168.1.1
12/09/09 03:58:41
Apache/2.2.9 (APMServ) mod_ssl/2.2.9 OpenSSL/0.9.8h PHP/5.2.6


只能正常显示主页,绝对路径的文件也访问正常,但是只要是点击主页上的链接都连接失败,显示上述错误代码。在还原WordPress和数据库后,找到出现错误的原因,我在wordpress后台设置中的固定链接中使用了静态页面,以至于Apache不能正常解析。

要让wordpress成功使用静态化页面我们就要在APMServ中启用支持静态页面解析功能。我的APMServ版本为5.2.6,下面就以5.2.6版本为例描述我解决的方法。

首先打开你的APM的安装目录,找到 APMServ5.2.6\Apache\conf\httpd.conf,为防止意外最好在修改前先备份一个。

注意:打开这类文本编辑文件最好用editplus,notepad++等专业编辑器来编辑,不能用记事本,否则保存后会有编码问题,切记。

找到以下这段文字

#APMServ默认虚拟主机
NameVirtualHost *:80
<VirtualHost *:80>
ServerName *
DocumentRoot "F:/mihuashu/APMServ5.2.6/www/htdocs"
<Directory "F:/mihuashu/APMServ5.2.6/www/htdocs">
Options FollowSymLinks IncludesNOEXEC Indexes
DirectoryIndex index.html index.htm default.htm index.php default.php index.cgi default.cgi index.pl default.pl index.shtml
AllowOverride Options FileInfo
Order Deny,Allow
Allow from all
</Directory>
</VirtualHost>


修改为

#APMServ默认虚拟主机
NameVirtualHost *:80
<VirtualHost *:80>
ServerName *
DocumentRoot "F:/mihuashu/APMServ5.2.6/www/htdocs"
<Directory "F:/mihuashu/APMServ5.2.6/www/htdocs">
Options FollowSymLinks IncludesNOEXEC Indexes
DirectoryIndex index.html index.htm default.htm index.php default.php index.cgi default.cgi index.pl default.pl index.shtml
AllowOverride Options FileInfo
Order Deny,Allow
Allow from all
</Directory>
RewriteEngine On
RewriteRule ^(.*)/archiver/([a-z0-9\-]+\.html)$ $1/archiver/index.php?$2
RewriteRule ^(.*)/forum-([0-9]+)-([0-9]+)\.html$ $1/forumdisplay.php?fid=$2&page=$3
RewriteRule ^(.*)/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ $1/viewthread.php?tid=$2&extra=page\% 3D$4&page=$3
RewriteRule ^(.*)/profile-(username|uid)-(.+)\.html$ $1/viewpro.php?$2=$3
</VirtualHost>

然后保存,重启APMServ使之生效

第1页

你可能喜欢

热门文档

相关文档

  • APMServ伪静态设置

    构建一个 WORDPRESS 博客站,在本地做测试需要用到 APMServ 这个软件。 APMServ 伪静态设置步骤如下:(因软件安装在 D:/所以下面代码里有 D:/!) 点击软件的【...

  • APMServ启用.htaccess伪静态重写功能,APMServ设置伪静态

    APMServ启用.htaccess伪静态重写功能,APMServ设置伪静态 分类: 建站 2011-09-08 10:36 1129人阅读 评论(0) 收藏 举报 ApmServ安装完,设置伪静态只能正常显示...

  • APMServ5.2.6伪静态设置

    APMServ5.2.6伪静态设置_IT/计算机_专业资料 暂无评价0人阅读0次下载举报文档 APMServ5.2.6伪静态设置_IT/计算机_专业资料。...

  • Wamp中discuz伪静态设置方法

    Wamp中discuz伪静态设置方法_冶金/矿山/地质_工程科技_专业资料。wamp disucz 静态设置Wampserver 中 discuz 伪静态设置方法 1. 将 apache modules 的“rewrite_...

  • 伪静态设置--IIS6伪静态设置问题

    IIS6.0 伪静态设置: 1.把下面的压缩包复制到自己的桌面上, 上传到自己的云主机下的需要设置伪静态的站点的 根目录里,解压到跟目录里,这时会多出一个 rewrite...

  • 网站设置伪静态的详细可操作方法

    网站设置伪静态的详细可操作方法_互联网_IT/计算机_专业资料。本人第一次操作伪静态,在网上学习了很多资料,并实践操作,归纳整理此设置伪静态的实际操作方法,供...

  • 伪静态设置

    伪静态设置_IT/计算机_专业资料。mod_rewrite是Apache的一个非常强大的功能,它可以实现伪静态页面。下面我详细说说它的使用方法 1.检测Apache是否支持mod_rewrite ...

  • phpstudy伪静态设置

    phpstudy伪静态设置_电脑基础知识_IT/计算机_专业资料。配置虚拟主机+ phpstudy 配置虚拟主机+伪静态 phpstudy 是一款集成最新的 Apache+PHP+MySQL+phpMyAdmin+Zend...

  • 详解如何设置Discuz论坛伪静态

    详解如何设置Discuz论坛伪静态_互联网_IT/计算机_专业资料。详解如何设置Discuz论坛伪静态详解如何设置 Discuz 论坛伪静态新手站长在用 Discuz 程序搭建网站后,会发现...

  • shopnum伪静态设置

    APMServ5.2.6伪静态设置 3页 1下载券 IIS伪静态设置 9页 免费 网站设置伪...IIS7.0 版本的静态化解 决办法就已经完全给大家揭示出来了,希望能对大家有所...

站点地图 | 文档上传 | 侵权投诉 | 手机版
本站所有资源均来自互联网,本站只负责收集和整理,均不承担任何法律责任,如有侵权等其它行为请联系我们.
文档下载 Copyright 2013 doc.guandang.net All Rights Reserved.  -  email