In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces the dedecms column list page link how to optimize, has a certain reference value, friends in need can refer to. I hope you will learn a lot after reading this article. Next, let the editor take you to learn about it.
How to optimize the link to the list page of dedecms column?
Dream weaving (dedecms) program for SEO search engine optimization to do better, flexibility is also very strong. But there are still some details that we need to find, modify, and use flexibly, such as the optimization of paged links to DEDECMS column lists.
Dedecms default column list pagination link:
Home page previous page 1 2 3 4 5 next page last page
This connection method is very unreasonable. For SEO, the weight of the column page has been inadvertently dispersed. The effect we want is to modify list_4_1.html to / a / the following connection method is reasonable:
Home page previous page 1 2 3 4 5 next page last page
Modification method
1. Find the file\ include\ arc.listview.class.php and add the following code before "/ / get a link between the previous page and the home page"
$typedir= ereg_replace ('{cmspath}', $GLOBALS ['cfg_cmspath'], $this- > Fields [' typedir'])
two。 Find the following lines of code under "/ / get a link to the previous page and the home page".
If ($this- > ageNo! = 1) {$prepage.= "previous rn"; $indexpage= "Home rn";}-change the above code to-if ($this- > ageNo! = 1) {if ($prepagenum==1) {$prepage.= "previous rn";} else {$prepage.= "previous rn";} $indexpage= "Home rn";}
find
$listdd.= ". $j." rn ";-changed to-- if ($jacks room1) {$listdd.=". $j. "rn";} else {$listdd.= ". $j." rn ";}
If you need to modify the paging style, you can also modify it in the above code, such as deleting
After this modification, links such as list_4_1.html no longer appear, but are directly linked to addresses such as / abc/. Although this is only a small detail modification, but the role of small details sometimes can not be underestimated. After this change to ensure that the link back to the default list page, to avoid the loss of weight, more in line with the practice of SEO.
Thank you for reading this article carefully. I hope it is helpful for everyone to share the link on the dedecms column list page how to optimize the content. At the same time, I also hope you can support us, pay attention to the industry information channel, and find out if you encounter problems. Detailed solutions are waiting for you to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 281
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.