Rules for turning to htaccess 301 after WordPress fixed link change

Source: Internet
Author: User

The current WordPress fixed link format is
/% Category %/% year %-% monthnum %-% day %/Your postname).html

Change
Article/% postname %/

How to write the 301 redirection rule in htaccess?

I have a stupid idea here. I don't know if this is feasible.
I have exported all the current addresses of all the articles.
Can I add rules in htaccess to direct all these links to the corresponding new link?

For example
The original link address of one of the links:

Http://baidu.com/my-interests/computer-applications/2010-04-02/gravatar.html

Turn

Http://baidu.com/article/gravatar/

 

Redirection after modifying the WordPress Fixed Link
This can be solved through two WordPress plug-ins
The two plug-ins are named Permalinks Moved Permanently and Redirection respectively.
References: http://www.uol123.com

Fixed Link: The htaccess 301 redirection rule after the WordPress fixed link is changed | Database Home + copy Link

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.