raksmart活动促销

分享

写回答

发帖

vps url rewrite 功能要怎么设置?

互联网出海创业 互联网出海创业 3014 人阅读 | 5 人回复

发表于 2008-6-20 16:32:46 | 显示全部楼层 |阅读模式

谢谢

回答|共 5 个

telon

发表于 2008-6-20 17:21:59 | 显示全部楼层

自己在windows xp做测试

1. 删除 #LoadModule rewrite_module modules/mod_rewrite.so 这句的 '#'

2.
<Directory />
    Options FollowSymLinks
    AllowOverride None     <===这里的None改成All
    Order deny,allow
    Deny from all
</Directory>
为了支持 .htacess

wordpress虽然没有了index.php出现,但是 permalinks 选择:
Date and name based (http://域名/wp/2008/06/20/sample-post/)
Numeric (http://域名/wp/archives/123 )
Custom, specify below
都不能访问.只有Default (http://域名/wp/?p=123 )才可以访问.
这是为什么. windows xp 下装 apache 2.2.9 和 php5.2.6测试的

大漠孤狼

发表于 2008-6-20 18:35:48 | 显示全部楼层

修改httpd.conf就可以吧,不需要什么特别的对待

telon

发表于 2008-6-21 09:37:36 | 显示全部楼层

不知道为什么首页可以打开但是静态化的页面就

The page cannot be found
The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.

--------------------------------------------------------------------------------

Please try the following:

If you typed the page address in the Address bar, make sure that it is spelled correctly.

Open the 127.0.0.1 home page, and then look for links to the information you want.
Click the  Back button to try another link.
Click  Search to look for information on the Internet.



HTTP 404 - File not found
Internet Explorer

bingu

发表于 2008-6-21 14:30:04 | 显示全部楼层

windows好像不支持用apache的mod_rewrite的,要特定的mod才行的。

NSPY

发表于 2008-6-26 13:50:15 | 显示全部楼层

原帖由 telon 于 2008-6-21 09:37 AM 发表
不知道为什么首页可以打开但是静态化的页面就

The page cannot be found
The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.

-------------------- ...

.htaccess里面写对了么?
您需要登录后才可以回帖 登录 | 注册

本版积分规则