Remove/a/From the dedecms URL/

Source: Internet
Author: User
Generally, for seo optimization, the length of a brief URL is required. practice shows that the number of URL layers not more than 3 is the most friendly to search engines, and the URL rules of Zhimeng are usually not friendly enough, today, let's talk about how to remove/a/From the dedecms URL /. By default, ded

Generally, for seo optimization, the length of a brief URL is required. practice shows that the number of URL layers not more than 3 is the most friendly to search engines, and the URL rules of Zhimeng are usually not friendly enough, today, let's talk about how to remove/a/From the dedecms URL /.

By default, the URL rules in dedecms are as follows:

Http: // localhost/a/news/

So how to remove/a/and shorten the URL? there are two methods:

(1) when creating a new article column, select the website root directory or cms root directory, which will remove/

(2) If your website already has an article, the above method is not advisable, because it will cause a lot of dead links and it doesn't matter, this can be achieved through dedecms's built-in SQL command line tool, such:

Input:

UPDATE dede_arctype SET typedir = REPLACE (typedir, 'A /',")

Click OK!

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.