Home >Web Front-end >HTML Tutorial >How to do 301 redirection on static pages? ? _html/css_WEB-ITnose

How to do 301 redirection on static pages? ? _html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:22:361125browse

XXX.com directs to www.XXX.com
does not use iis


Reply to discussion (solution)

this.location = "http://www .baidu.com";

this.location = "http://www.baidu.com";
Use js? More details


this.location = "http://www.baidu.com";
Do you use js? To be more detailed
it uses JS, just say this
This method seems to only work with 302 instead of 301
You can consider using it in conjunction with the background program



this .location = "http://www.baidu.com";
Use js? To be more detailed
it uses JS, just say this
This method seems to only be 302 instead of 301
You can consider using it in combination with the background program
I use .net How to make the program? .




this.location = "http://www.baidu.com";
Use js? To be more detailed
it uses JS, just say this
This method seems to only be 302 instead of 301
You can consider using it in combination with the background program
I use .net How to make the program? .

Response.Status="301 Moved Permanently" Response.StatusCode = 301;Response.Headers.Add("Location","http://www.baidu.com");

Response.Status = "301 Moved Permanently";Response.StatusCode = 301;Response.Headers.Add("Location","http://www.baidu.com");

Missed the quotation marks

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn