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.