Application of pseudo-static in Phpwind

Source: Internet
Author: User

What's the use of pseudo static?

The main thing is to cater to search engine convenience search engine spiders (Spider) to crawl the relevant content on the page!

Convenient for users to visit a good web site if the dynamic users in each other when the transmission of the feeling of trust will not be high, but a look at a static page relative to the user's confidence in the Web page on the top and pseudo static suffixes of the basic similarities to see the same as a static or a true web!

Application of pseudo-static in Phpwind

If you hire a virtual host, make sure that the space supports pseudo static mode, most commonly the. htaccess web-side configuration for Apache. If you are using a stand-alone host, you can configure the support pseudo static mode on the server. First of all, virtual space defaults to support. htaccess custom pseudo static (typically Linux virtual machines). htaccess configuration, save the following code as. htaccess to the server root directory.

Rewriteengine on
Rewriterule ^ (. *)-htm-(. *) $ $1.php?$2
Rewriterule ^ (. *) simple/([tf].+). html$/simple/index.php?$2.html

Independent server, if Win2003+iis, then you need to install a component called: Isapi_rewrite, after installation, edit Httpd.ini file, the contents are as follows:

[Isapi_rewrite]
# defend your computer from some worm attacks
Rewriterule. * (?: Global.asadefault.idaroot.exe ...). * . [F,i,o]
Rewriterule ^ (. *)-htm-(. *) $ $1.php?$2
Rewriterule ^ (. *)/simple/([a-z0-9_]+.html) $ $1/simple/index.php?$2
#Code by Josh @ phpwind 2008-10-08? ([a-za-z]+)

If it's an old version, please put
Rewriterule ^ (. *)-htm-(. *) $ $1.php?$2

This rule should read
Rewriterule ^ (. *)-htm-(. *) $ $1/.php?/$2,
Isapi_rewrite installation Tutorial See: PW Forum IIS set up a static directory tutorial



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.