In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Editor to share with you how the Imperial cms set pseudo-static, I believe that most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to understand it!
1. The column is set to dynamic access
Modify individual column properties, as shown in the following figure
Modify column attributes in batches, as shown in the following figure:
two。 The home page is also set for dynamic access
Now the whole station is accessed dynamically.
3. Pseudo-static parameter setting
As shown above, set the pseudo-static parameters. If not, click the default button to use the empire's default pseudo-static rules.
4. Update information page address
After setting up, the hyperlinks of the site become pseudo-static, but open the page and display 404. This is because the site server has not yet configured pseudo-static rules.
5. Set pseudo-static rules for the website server
Nginx pseudo-static rules:
Location / {rewrite ^ ([^\.] *) / listinfo- ([0-9] +)-([0-9] +)\ .html$ $1/e/action/ListInfo/index.php?classid=$2&page=$3 last;rewrite ^ ([^\.] *) / showinfo- ([0-9] +)-([0-9] +)-([0-9] +)\ .html$ $1/e/action/ShowInfo.php?classid=$2&id=$3&page=$4 last Rewrite ^ ([^\.] *) / infotype- ([0-9] +)-([0-9] +)\ .html$ $1/e/action/InfoType/index.php?ttid=$2&page=$3 last;rewrite ^ ([^\.] *) / tags- (. +?)-([0-9] +)\ .html$ $1/e/tags/index.php?tagname=$2&page=$3 last;if (!-e $request_filename) {return 404;}}
After modifying the configuration file, you need to restart nginx to take effect.
Apache pseudo-static rule
RewriteEngine OnErrorDocument 404 / 404.htmlRewritebase / # Information list RewriteCond% {QUERY_STRING} ^ (. *) $RewriteRule ^ listinfo- (. +?)-(. +?)\ .html$ / e/action/ListInfo/index\ .php\? classid=$1&page=$2# Information content Page RewriteCond% {QUERY_STRING} ^ (. *) $RewriteRule ^ showinfo- (. +?)\ .html$ / e/action/ShowInfo\ .php\? classid=$1&id=$2&page=$3# title category List page RewriteCond% {QUERY_STRING} ^ (. *) $RewriteRule ^ infotype- (. +?)-(. +?)\ .html$ / e/action/InfoType/index\ .php\? ttid=$1&page=$2#TAGS information list page RewriteCond% {QUERY_STRING} ^ (. *) $RewriteRule ^ tags- (. +?)-(. +?)\ .html$ / e/tags/index\ .php\? tagname=$1&page=$2# comment list page RewriteCond% {QUERY_STRING} ^ (. *) $RewriteRule ^ comment- (. . +?)-(. +?)\ .html$ / e/pl/index\ .php\? doaction=$1&classid=$2&id=$3&page=$4&myorder=$5&tempid=$6 are all the contents of the article "how to set pseudo-static in Imperial cms" Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more 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.