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