HostMonster Medium PHPwind pure static implementation

HostMonster Spaces PHPWind realize how pure static form of URL then? Specific methods are as follows:

Usage:
Apache server as an example to introduce the use of methods.

1. At the deployment of a static directory, open the directory of the deployment of static functions, static directory is set to "-htm-", will be a static directory of extensions is set to: ". Html"
The default URL the form of "http://www.phpwind.net/thread.php?fid=2"
URL new form of "http://www.phpwind.net/thread-htm-fid-2.html"
This pure form of static URL more user-friendly search engine included

2.Apache Web Server configuration
First determine the mod_rewrite module is loaded, methods: Examine conf / httpd.conf in the presence of the following two pieces of code (the specific path may be different, but the basic form is the same):

(1) LoadModule rewrite_module libexec / mod_rewrite.so
(B) AddModule mod_rewrite.c

If exist, then in the configuration file (usually is conf / httpd.conf) by adding the following code:,


RewriteEngine On
RewriteRule ^(.*)- htm-(.*)$ $ 1.php? $ 2


At this point have to note that if using the web to define the virtual host, be sure to add the virtual host configuration go, otherwise, may not be able to use, well after the change will then restart Apache.