How to set custom pseudo-static rules of Feifei CMS

Source: Internet
Author: User

The custom pseudo-static function is available for Apsara stack CMS2.7. If you do not use the default pseudo-static rules of the system, you need to write your own code. The actual access addresses of each page are listed as follows:

Index. php? S =/Home-vod-show-id-*-p-*-wd-*-area-*-language-*-actor-*-director-*-year -* -letter-*-order -*. html
Video content page index. php? S =/Home-vod-read-id-*. html
Video playback page index. php? S =/Home-vod-play-id-*-sid-*-pid-*. html
Index. php on the video search page? S =/Home-vod-search-wd-*-p-*-area-*-language-*-actor-*-director-*-year-*-letter -* -order -*. html
Video tag page index. php? S =/Home-tag-show-wd-*-p-*. html
     
Index. php? S =/Home-news-show-id-*-p-*. html
Index. php? S =/Home-news-read-id-*. html
Index. php? S =/Home-news-search-wd-*-p-*. html
Index. php? S =/Home-tag-shown-wd-*-p-*. html
     
Index. php? S =/Home-special-show-p-*. html
Index. php? S =/Home-special-read-id-*. html
     
Message book index. php? S =/Home-gb-show-p-*-id-*. html
Index. php on the map page? S =/Home-map-show-id-*-limit-*. html
Custom template index. php? S =/Home-my-show-id-*. html

Example of rewriting (suffix: html)

Video topic page rules:/video/$ id-$ page
Video content page rules:/video/$ id
Video playback page rules:/video/$ id-$ sid-$ pid
Video search page rules:/search-$ wd-$ actor-$ page
Video TAG page rules:/tag/$ wd-$ page
Custom template rules:/detail/$ id

Rewrite rules (for details about other apache web servers, refer)

RewriteRule ^ video/(%0-9%%%%%.html $ index. php? S =/Home-vod-read-id-$1
RewriteRule ^ video/(%0-9%%%%%-(%0-9%%%%%%.html $ index. php? S =/Home-vod-show-id-$ 1-p-$2
RewriteRule ^ video/(%0-9%%%%%%-(%0-9%%%%%%%%%%%.html $ index. php? S =/Home-vod-play-id-$ 1-sid-$ 2-pid-$3
RewriteRule ^ search-(. *)-(. * faster -(%0-9%%%%%.html $ index. php? S =/Home-vod-search-wd-$1-actor-$ 2-p-$3
RewriteRule ^ tag/(. * )-(%0-9%%%}.html $ index. php? S =/Home-tag-show-wd-$ 1-p-$2
RewriteRule ^ detail/(. * example .html $ index. php? S =/Home-my-show-id-$1

 

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.