[介绍]
GoDaddy Windows空间支持伪静态(URL重写)
|
|
GoDaddy的Windows空间支持URL Rewrite模块,需要使用web.config文件进行配置(注:非使用.htaccess)
官方原话:
Windows hosting accounts using IIS7 support the Microsoft® URL Rewrite Module, which rewrites complicated URLs into more user-friendly URLs based on rules specified by the webmaster in the account's web.config file.
如果空间被标记为Windows Web Hosting的不支持URL Rewrite
标签查看:(下图的标签为Deluxe Hosting - Windows)
url重写(URL Rewrite)的作用:
可以把诸如下面的比较复杂的链接进行简化,使得可读性更强;对搜索引擎(SEO)也比较友好
http://www.coolexample.com/Vehicles/Category.aspx?Category=Cars
http://www.coolexample.com/Vehicles/Category.aspx?Category=Trucks
http://www.coolexample.com/Vehicles/Category.aspx?Category=Vans
简化后变成:
http://www.coolexample.com/Cars
http://www.coolexample.com/Trucks
http://www.coolexample.com/Vans
URL Rewrite使用方法:http://learn.iis.net/page.aspx/4 ... guration-reference/
收集的一些伪静态设置教程: GoDaddy伪静态设置
[ 本帖最后由 add.c 于 2010-5-27 05:18 PM 编辑 ] |
|
|
|
|
|
|
|
|
|
|
add.c
发表于 2009-11-23 17:54:52
|
显示全部楼层
|
官方页面:http://help.godaddy.com/article/5443 |
|
|
|
|
|
|
|
|
|
|
cucu
发表于 2009-11-23 20:45:38
|
显示全部楼层
|
|
|
|
|
|
|
|
|
|
ebow
发表于 2009-12-6 13:40:03
|
显示全部楼层
|
|
|
|
|
|
|
|
|
|
wmxz09
发表于 2010-5-27 17:08:46
|
显示全部楼层
|
我的空间是GODADDY WINDOW DELUXE空间,安装了WORDPRESS, 网上查找很多方法想要重要REWRITE,都没成功。。版主能不能具体说一下怎么操作。。 |
|
|
|
|
|
|
|
|
|
|
wmxz09
发表于 2010-5-27 17:22:35
|
显示全部楼层
|
|
|
|
|
|
|
|
|
|
add.c
发表于 2010-5-27 17:23:47
|
显示全部楼层
原帖由 wmxz09 于 2010-5-27 17:08 发表 
我的空间是GODADDY WINDOW DELUXE空间,安装了WORDPRESS, 网上查找很多方法想要重要REWRITE,都没成功。。版主能不能具体说一下怎么操作。。
如下代码保存到web.config文件里.
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Main Rule" stopProcessing="true">
<match url=".*" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="index.php/{R:0}" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
[ 本帖最后由 add.c 于 2010-5-27 05:45 PM 编辑 ] |
|
|
|
|
|
|
|
|
|
|
wmxz09
发表于 2010-5-27 17:36:06
|
显示全部楼层
|
把你的这些代码COPY到WEB.CONFIG,上传后,还是500错误。。怎么回事呢 |
|
|
|
|
|
|
|
|
|
|
add.c
发表于 2010-5-27 17:47:48
|
显示全部楼层
|
|
|
|
|
|
|
|
|
|
昊天
发表于 2010-7-15 08:18:25
|
显示全部楼层
如果空间被标记为Windows Web Hosting的不支持URL Rewrite
标签查看:(下图的标签为Deluxe Hosting - Windows)
------------------------------------------------------------------------------
请问我的现在看是如下的描述文字:
Hosting- Grid - Economy - Windows - 1 year (recurring)
这个支持URL Rewrite么? |
|
|
|
|
|
|
|
|