Phpwind9.0rc pseudo-static settings-PHP development

Source: Internet
Author: User
We know how to convert the URL of a dynamic site to a static link, which is more likely to be indexed by search engines. We know how to convert the URL of a dynamic site to a static link, which is more easily indexed by search engines.


First, let's take a look at the comparison results before and after URL settings:
Http: // 127.0.0.1/phpwind9.0/read. php? Tid = 1 & fid = 1
Http: // 127.0.0.1/phpwind9.0/read-1-1.html

To achieve the above pseudo-static effect is actually very simple, the following will be done in several steps


1. Download and install phpwind9.0 rc

Download and install phpwind9.0 rc in the latest version.
Log on to the background and find the global URL. The URL is pseudo-static.
See the urlformat below, and add them all behind them. html
Forum-{fid}-{page}
Read-{tid}-{page}
Special-{id}
U-{uid}
Tag-{id}

Set the URL format

Forum-shanghfid}-shanghpage}.html
Read-effectid0000-0000page0000.html
Special-veriid).html
U-0000uid).html
Tag-shortid).html

In general, the pseudo-static suffix is set to .html#.shtml. Of course, you can also set it to another format, such as. xml.


2. Enable URL pseudo-static settings
After filling in the pseudo-static Suffix in the previous step, hook the checkbox after the set items, and then submit


3. After the pseudo-static function is enabled, you must enable the rewrite module of the server.
Method, referRewrite Rules in thinkphp.


4. Put the. htaccess file in the root directory and restart the server.
Phpwind9.0 rc does not have a. htaccess file. Therefore, copy the following code to plain text and save it as. htaccess to the root directory.

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.