Dedecms How to remove a directory from the URL

Source: Internet
Author: User

The example in this article describes how Dedecms removes the a directory from the URL. Share to everyone, for your reference. The specific analysis is as follows:

Friends using dedecms may find that their URL directory generation is automatically with a/a/directory, then how to remove the URL/a/directory, I would like to introduce to you.

So how to remove/a/, shorten the URL, there are two ways:

method One , if you are a new station we can be created when the article column, select the site root directory or the CMS root directory, this will be removed A/

1, preferred in the system setup that system basic parameters that, the document HTML default save path, remove a.

2, and then in the column management that modified, file save directory, own name.

method Two , if the direct replacement of the directory/a/and, the article did not go to the site ranking is not good, there will be a lot of dead links, we directly in the DEDECMS background command in the following SQL can be executed, and then regenerate the page.

Enter the code as follows:

UPDATE dede_arctype SET typedir=replace (Typedir, ' a ', ') SQL execution statement interface in the System--sql command line tool--Enter the above code, note dede_ Arctype to correspond to the name of the table in your database, if your database table prefix is Aa_ then it will be changed to Aa__arctype.

I hope this article will be helpful to everyone's Dedecms construction station.

Original abstracts from: http://www.jb51.net/cms/266790.html, the original text has slightly modified ~ ~

Dedecms How to remove a directory from the URL

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.