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!