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
Release: 2016-06-24 12:22:36
Original
1108 people have browsed it

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");
Copy after login

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

Missed the quotation marks

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template