以本站为例,本站域名www.shenzhenwo.com,shenzhenwo.com,www.shenzhenwo.cn,shenzhenwo.cn
目标:将所有域名301跳转到www.shenzhenwo.com,好处我就不说了,绝对有利于SEO,所有域名的权重将集中在www.shenzhenwo.com这个域名上,包括PR,收录等等。
1、在IIS里网站(主站)的所有主机头删除,只留www.shenzhenwo.com这一个主机头
2、新建一个网站,暂且命名为ReURL,网站目录可以为空,将新建的这个网站的主机头设为 shenzhenwo.com,www.shenzhenwo.cn,shenzhenwo.cn这三个。
3、设置ReURL的属性,在“重定向到”一栏里面输入“http://www.shenzhenwo.com$S$Q”,然后在“上面输入的准确URL”和“资源的永久重定向”两个选项前面打钩,最后点应用,就此301重定向全部设置完成。
4、二级域名的设置方法也跟上面步骤一样,如要将www.shenzhenwo.com/bbs 301转向为bbs.shenzhenwo.com。也许你会说我直接设置个二级域名就可以了,但是搜索引擎会认为www.shenzhenwo.com/bbs/1.htm 和bbs.shenzhenwo.com/1.htm是两个不同的页面,但事实上这两个页面是一样的,因此会分散这个页面的权重。
---------------------------重定向的参数说明--------------------------
Microsoft's Internet Information Server ( MS IIS ) is very different from Apache, and you need to handle redirects on it differently.
Although you can use the popular FrontPage web development software with Apache + FP extensions, most people who use FrontPage prefer to use IIS. Also, Microsoft's .NET and ASP development platforms usually work best on MS IIS (no surprise there).
Definitions for Terms used in this Article
Detailed Information
Overview
What you are trying to accomplish here is to have one resource (either a page or an entire site) redirect a visitor to a completely different page or site, and while doing so tell the visitor's browser that the redirect is either permanent (301) or temporary (302).
Therefore you need to do three things:
Have 2 resources - one source page or website, and one destination page or website.
When an attempt to access the source resource is made, IIS transfers the visitor to the destination instead.
During the transfer, IIS reports to the visitor that a redirect is happening and it's either temporary or permanent.
The good news is that IIS has always supported this, and you can use it's control panel to make the redirect.
Administrator Mode - Redirecting a Domain
If you can log into the Windows 2000 (or higher) server and access the desktop, then choose:
Start > Programs > Administrative Tools > Internet Services Manager
Server is currently unavailable or down for maintenance
吓我一跳.还以为端口冲突.因为之前装过php-5.2.5-win32-installer.msi
我设为默认端口80,之后被卸载,还是这样.
经仔细排查外,发现之前在做jsp项目的时候,用过resin服务器.文件里有个setup.exe中有设置iis/pws的项.只要装其remove掉就行.如果你也出现此情况,试试看吧!
---------------------------------------------------------------
一、分别安装配置iis和resin1.1使各自都单独能正常运行。iis和resin1.1的安装后路径如下:c:\apache 和 c:\resin1.1。
二、配置IIS
1.拷贝iis_srun.dll 到IIS scripts目录"c:\inetpub\scripts";
2.在c:\inetpub\scripts目录下创建配置文件(resin.ini)用于指定resin的配置文件的位置。
resin.ini内容如下:
Tags: IIS
部署,结果按照他们说的一步一步去做,老是不成功,今天终于被我做好了,现在拿来给大家分享一下。
先来介绍一下我的部署环境:
JDK1.5、tomcat 5.5、IIS6.0、windows2003
上面的安装过程就不详细说了,只介绍一下我的tomcat是安装在 C:\Program Files\Tomcat 5.5 下
有关本文的所有资料请到下面的地址下载:
http://download.csdn.net/source/576431