Tag: 302预览模式: 普通 | 列表
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 | 查看次数: 395
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 | 查看次数: 378
10-03
12

301和302重定向 各类语言代码大全

最近好像陷进重定向的问题里爬不出来了,先说说301和302重定向好了,301是永久转移,就是说原来的页面改名字了,永远用这个地址代替了。302就是“找到”(Found)也就是临时重定向。


先说说html的302重定向,不是为了page rank,不是为了任何特别的问题,仅仅因为我把一些人家的

查看更多...

Tags: 301 重定向 302

分类:学习 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 285
10-03
11

聚合权重,把顶级域名302到www域名

<%
if(request.ServerVariables("SERVER_NAME")="javamilk.cn") then
Response.Status="302 Moved Permanently"
Response.AddHeader "Location","http://www.javamilk.cn/"
Response.End
end if
%>

查看更多...

Tags: 302 权重

分类:Seo&Hacker | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 312