By default, Phpcms V9 's article URL path is dynamic, such as
http://localhost/phpcms/index.php?m=content&c=index&a=show&catid=6&id=1
Now I'm going to optimize the previous bunch of URL characters to be short and relatively easy for the search engine to crawl the URLs:
Http://localhost/phpcms/news/1.html
There are three steps to achieve:
Custom URL Rules
The first thing to do is to create your own URL rules to understand some definitions and variable meanings. First go to URL Rule management: "Extend"-"Rul Rule Management"-"Manage Rul rules" and add rules:
1, {$parentdir} {$catdir}---Meaning: The current column directory name;
2, {$catid}----meaning: Column ID number;
3, {$year}----meaning: year;
4, {$month}--meaning: month;
5, {$day}-----meaning: day;
Modify the "Generate HTML Settings"
Find: Content > Content Related Settings > Admin section, find the page:
"Generate HTML Settings" above the dot
The default "column generation HTML" and "content page Generation HTML" radio buttons are "No", instead "yes"
You have already completed the rules for setting the URL, but don't forget to update the cache once you've set it up!
Optimization settings phpcms V9 URL rules