Tag: IIS预览模式: 普通 | 列表
10-03
12

IIS及PHP代码301自身域名重定向方法

一、windows服务器,iis6.0。301重定向方法
    以本站为例,本站域名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是两个不同的页面,但事实上这两个页面是一样的,因此会分散这个页面的权重。

---------------------------重定向的参数说明--------------------------    

查看更多...

Tags: 301 重定向 302 自身域名 IIS PHP

分类:Seo&Hacker | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 408
10-03
12

IIS Redirects - 301 , 302

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

查看更多...

Tags: IIS 301 重定向 302

分类:Seo&Hacker | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 393
09-01
28

Server is currently unavailable or down for mainte

无意发现我的ISS启动不了,地址中输入http://localhost:80居然出现
Server is currently unavailable or down for maintenance
吓我一跳.还以为端口冲突.因为之前装过php-5.2.5-win32-installer.msi
我设为默认端口80,之后被卸载,还是这样.

经仔细排查外,发现之前在做jsp项目的时候,用过resin服务器.文件里有个setup.exe中有设置iis/pws的项.只要装其remove掉就行.如果你也出现此情况,试试看吧!

Tags: resin IIS PHP

分类:学习 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 520
08-12
12

如何让IIS支持JSP?

如何让IIS支持JSP,需要安装哪些插件?何处下载?如何在IIS中配置?多谢各位指教!
---------------------------------------------------------------

一、分别安装配置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

分类:Css&Ps | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 445
08-12
12

IIS+tomcat整合,并且通过域名访问网站

近做在部署一个工程,在网上疯狂搜索资料,所获取的资料都是很乱的,说是要教人如何整合,

部署,结果按照他们说的一步一步去做,老是不成功,今天终于被我做好了,现在拿来给大家分享一下。

先来介绍一下我的部署环境:
JDK1.5、tomcat 5.5、IIS6.0、windows2003
上面的安装过程就不详细说了,只介绍一下我的tomcat是安装在 C:\Program Files\Tomcat 5.5 下
有关本文的所有资料请到下面的地址下载:
http://download.csdn.net/source/576431

查看更多...

Tags: IIS TOMCAT

分类:Css&Ps | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 562
07-12
21

http/1.1 500 server error错误的解决方法

可能是下面的三种情况,原因是这些组件可能受到了破坏,依次在运行里面输入试试
regsvr32 %windir%/system32/jscript.dll
regsvr32 %windir%/system32/vbscript.dll
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet_regiis.exe -i
dotnet版本号现在有三种,你装的哪一个就改成哪一个
v1.1.4322
v1.0.3705
v2.0.50727

查看更多...

Tags: IIS

分类:Asp&Php | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 703