Code for static transformation of dedecms full site URL
Source: Internet
Author: User
Transferred from bbs.dedecms.com
1. Copy include to the include directory on the website.
2. Modify the database
Set all documents to "dynamic only". You can go to database management and execute the following command:
Update dede_archives set ismake =-1
Set the default value of ismake to-1, which is dynamic.
Set all columns to "use dynamic pages" to go to database management and execute the following command:
Update dede_arctype set isdefault =-1
Set the default value of isdefault to-1, which is dynamic.
3. Add Server rewrite rules. For Apache2, you can add the following to the end of the httpd. conf file:
<IfModule mod_rewrite.c>
RewriteRule ^ (. *)/view-([0-9] +) \. html $1/plus/view. php? Aid = $2
RewriteRule ^ (. *)/view-([0-9] +)-([0-9] +) \. html $1/plus/view. php? Aid = $2 & pageno = $3
RewriteRule ^ (. *)/list-([0-9] +) \. html $1/plus/list. php? Tid = $2
</IfModule>
4. After adjustment
Go to the DEDE background management program and update the homepage.
Local download
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.