In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces the method of setting DEDECMS 5.7 pseudo-static, which is very detailed and has a certain reference value. Friends who are interested must read it!
DEDECMS 5.7How to set pseudo-static
Dream content management system (DedeCms) to simple, practical, open source and well-known, is the most well-known PHP open source website management system, but also the use of the most users of the PHP class CMS system, dedecms5.7 is more powerful and practical, but some friends are not very familiar with the pseudo-static setting of dede5.7, the following, for you to share about dede5.7 pseudo-static setting method. ()
The first step, background-system parameters-core settings-whether to use pseudo-static: select "Yes"
Note: whether your website space supports pseudo-static, you can contact the IDC business of the space, if it is your own server, it will be easier to do, do it yourself and have plenty of food and clothing. In general, spaces support pseudo-static. The pseudo-static of the Apache server is relatively simple, and the corresponding pseudo-static rules can be added directly to the .htaccess file; while the implementation of the pseudo-static of the IIS server needs to load the Rewrite components, and then configure the httpd.ini file.
Step 2. If the generated static column or article HTML already exists on your website, simply execute the following statement in the background-system-SQL command line tool:
Set all documents to dynamic browsing only:
Update dede_archives set ismake=-1
Set all columns to use dynamic pages:
Update dede_arctype set isdefault=-1
The third step, pseudo-static modification of list page and article page
Open / include/helpers/channelunit.helper.php.
(1) find:
/ / dynamic article if ($cfg_rewrite = ='Y') {return $GLOBALS ["cfg_plus_dir"]. "/ view-". $aid.'-1.html';}
Replace with
/ / dynamic article if ($cfg_rewrite = ='Y') {return "/ DedeCMS/DedeCMS5.7-". $aid.'-1.html';}
Change the default / plus/view-1-1.html article link format to / DedeCMS/DedeCMS5.7-1-1.html.
(2) find:
/ / dynamic $reurl = $GLOBALS ['cfg_phpurl']. "/ list.php?tid=". $typeid
Replace with
/ / dynamic $reurl = "/ category/list-". $typeid. ".html"
Change the default channel or list page URL/plus//list.php?tid=1 to / dedecms/list-1.html.
The fourth step, pseudo-static modification of list paging
Open / include/arc.listview.class.php
Find:
$plist = str_replace ('.php? tid=',' -', $plist)
Replace with
$plist = str_replace ('plus/list.php?tid=',' DedeCMS/DedeCMS5.7-', $plist)
Replace the default plus/list.php?tid= with RMB/list-
Change the default list paging link format plus/list.php?tid=x$x$xl to DedeCMS/DedeCMS5.7-x-x-x.html.
Step 5. Pseudo-static pagination of the article.
Open / include/arc.archives.class.php and find the end of the GetPagebreakDM () function that gets the dynamic paging list:
Find:
$PageList = str_replace ("plus/view.php?tid=", "DedeCMS/DedeCMS5.7-", $PageList)
Replace with
$plist = str_replace ('plus/view.php?tid=',' DedeCMS/DedeCMS5.7-', $plist)
Replace the default plus/view.php?tid= with RMB/huilv-
Change the default article paging link format plus/view.php?tid=x$x$xl to DedeCMS/DedeCMS5.7-x-x-x.html
Step 6, TAG tag pseudo-static
DedeCms's default TAG tag URL, shaped like / tags.php?/dedecms template /, doesn't feel good about having a question mark. Let's change it to / tags/dedecms template /, isn't it much better?
Let's change it and open / include/taglib/tag.lib.php:
Find:
$row ['link'] = $cfg_cmsurl. "/ tags.php?/" .urlencode ($row [' keyword']). "/"
Replace with
$row ['link'] = $cfg_cmsurl. "/ tags/" .urlencode ($row [' keyword']). "/"
This will be modified, upload you to your website, remember: remember to back up the original website!
Step 7, httpd.ini pseudo-static rules:
[ISAPI_Rewrite] # 3600 = 1 hourCacheClockRate 3600RepeatLimit 32RewriteRule ^ (. *) / RMB/list- ([0-9] +)\ .html $1/plus/list\ .php\? tid=$2 [I] RewriteRule ^ (. *) / RMB/list- ([0-9] +)-([0-9] +)-([0-9] +)\ .html $1/plus/list\ .php\? tid=$2&TotalResult=$3&PageNo=$4 [I] RewriteRule ^ (. *) / RMB/huilv- ([0-9] +) 9] +)-([0-9] +)\ .html $1/plus/view\ .php\? arcID=$2&pageno=$3 [I] RewriteRule ^ (. *) / (. *) _ (. *) _ ([0-9] +)\ .html $1/huilv/?from=$2&to=$3&num=$4 [I] RewriteRule ^ (. *) / tags\ .html $1/tags\ .php [I] RewriteRule ^ (. *) / tags/ (. *) (?: (\. *)) * $1/tags \ .php\? / $2 [I] RewriteRule ^ (. *) / tags/ (. *)\ / (?: (\?. *)) * $1/tags\ .php\?\ / $2\ / [I] RewriteRule ^ (. *) / tags/ (. *)\ / ([0-9]) (?: (\? *)) * $1/tags\ .php\?\ / $2\ / $3 [I] RewriteRule ^ (. *) / tags/ (. *) [0-9])\ / (?: (\?. *)) * $1/tags\ .php\? / $2\ / $3\ / [I]
Save the above code as: httpd.ini uploaded to the root directory of the website.
If there are no special needs, it is recommended to use the official default to generate static page browsing.
These are all the contents of the pseudo-static method for setting DEDECMS 5.7. thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!
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: 0
*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.