Application of pseudo-static solution in phpWind

Source: Internet
Author: User
Application of pseudo-static solution in phpWind

What is the use of pseudo-static data?

The most important thing is to cater to the search engine's convenience for search engine Spider to capture the relevant content on the webpage!

It is convenient for users to access a good website. if a dynamic user feels that the trust of the other user is not high when they communicate with each other, however, when you look at a static page, you will have a higher level of trust in the page, and the pseudo-static suffix methods are basically the same. at first glance, you will know whether it is a pseudo-static page or a real static page!

Application of pseudo-static in phpWind

If you are renting a VM, make sure that the space supports the pseudo-static mode. The most commonly used is. htaccess configuration for apache WEB. If you are using an independent host, you can configure the pseudo-static mode on the server. First, the virtual space supports the. htaccess custom pseudo-static (usually a linux virtual machine). htaccess configuration by default. Save the following code as. htaccess and upload it to the root directory of the server.
Http://www.devdao.com/
RewriteEngine On
RewriteRule ^ (. *)-htm-(. *) $ 1.php? $2
RewriteRule ^ (. *) simple/([t | f0000.00000000.html $/simple/index. php? $2.html

For an independent server, if it is win2003 + iis, you need to install an ISAPI_Rewrite component. after installation, edit the httpd. ini file. the content is as follows:

[ISAPI_Rewrite]
# Defend your computer from some worm attacks
RewriteRule .*(? : Global. asa | default. ida | root.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 is an old version
RewriteRule ^ (. *)-htm-(. *) $ 1.php? $2

This rule is changed
RewriteRule ^ (. *)-htm-(. *) $1/. php? /$2,
For ISAPI_Rewrite installation tutorial, see the tutorial on setting static directories in the PW Forum IIS.

 

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.