Sina saef domain 301 redirect Settings

Source: Internet
Author: User

The web site from the Sina SAE moved over, the former domain name can also be accessed, so there will be two duplicate sites, not conducive to seo/seo.html "target=" "_blank" > Search engine included, and the previous weight will not be, so do a good link 301 Redirect, Open the Config.yaml file on the SAE:

Handle

The code is as follows

-Rewrite:if (in_header["host"] ~ "^101ban.sinaapp.com" && Path ~ "^ (. *) $") goto http://domain name/hongzhiban$1 [l,qsa,r=301] "

This is a previous website moved to the site under the domain name of 301 redirect.

The modification of app.conf files on Bae seems to have no effect, directly in the subject, the site is based on WordPress development, so in the theme of the header.php add the following code:

  code is as follows &nbs P;

<?php
if ($_server[' server_name ']!= ' www.111cn.net ') {
&N Bsp;header (' http/1.1 moved Permanently ');
 header ("location:http://www.111cn.net/");
 die ();
}

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.