Zhimeng road-zhimeng Free List page paging link absolute path (SEO)

Source: Internet
Author: User

Returning home for half a month has no idea. It seems that IT workers cannot afford to be comfortable ~~~~

Let's take a look at what needs to be improved, so we first looked at the paging link on the Free List page-pretty uncomfortable !!

Are relative paths, "said" is not good for Seo, so change !!!

Find arc. freelist. Class. php In include, find the "function getpagelistst" line, and change it immediately.

Add a sentence directly to the function body:

 
 FunctionGetpagelistst ($ List_len,$ Listitem= "Info, pageno"){/*Add this sentence as the absolute address path of the page*/$ Baseurl=$ Globals['Cfg _ basehost'].Ereg_replace('{Cmspath }',$ Globals['Cfg _ cmspath '],$ This-> Flinfos ['listdir']);

The absolute path of the current free list page is sorted out, and then the absolute path can be achieved in the paging link.

 
 $ Prepage. = '<SPAN class = "disabled" Title = "Previous Page"> <a href = "'.$ Baseurl.Str_replace("{Page }",$ Prepagenum,$ Tnamerule). '"> <Previous page </a> </span> ';

Oh, the result

Related Article

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.