The way to keep the original link and create a new URL in the revision _linux

Source: Internet
Author: User
How to do this (Apache network server only):
File Location: apache->conf->httpd.conf
Please use the alias directive in httpd.conf:
Alias/newurl/www/htdocs/oldurl
Such as: User access to the new address example.com/newurl/id34.html server will provide the content of the original address is example.com/www/htdocs/oldurl/id34.html.

Note: The alias changes only the local URL, such as the/newurl/id34.html part of the www.xxx.com/newurl/id34.html, and cannot change the host name portion of the URL (for example, the http://www.xxx.com/part). To change the host name portion of the URL, use either the redirect or Rewriterule directives.

Rookie Guide: This function of the Alias command in the httpd.conf is this: #Alias/webpath/full/filesystem/path remove the front of the #, and make the appropriate changes can be.

SEO process Generally in these situations need to use this feature:

1, when the file move or file directory name found change, for SEO needs, you need to keep the old URL;

2, the website revision, the website navigation and the link change, in order to continue to hold the original link to bring the flow, you need to keep the old URL;

3, you want different people to use different URLs to link the same content. (SEO is generally not recommended to do this)

Wait a minute..

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.