只要你的主机支持伪静态就可以,在你windows系统的主机的根目录内上传个httpd.ini,如果是linux主机上传的文件是.htaccess,两者不同,以下是适用在windows主机的伪静态规则:把下面的代码保存为httpd.ini就可以
 

 
  
  1. [ISAPI_Rewrite]  
  2.  
  3. 3600 = 1 hour  
  4.  
  5. CacheClockRate 3600  
  6.  
  7. RepeatLimit 32  
  8.  
  9. RewriteCond Host: ^test\.com$  
  10.  
  11. RewriteRule (.*) http\://www\.test\.com$1 [R,I]  
  12.  
  13. # Protect httpd.ini and httpd.parse.errors files  
  14.  
  15. # from accessing through HTTP  
  16. RewriteBase /  
  17. RewriteRule ^(.*\.html.*)$ /index.php/$1 [L] 

linux系统下的伪静态规则如下,不过前提条件是要apache或nginx支持伪静态
 

 
  
  1. RewriteEngine on  
  2. RewriteCond %{http_host} ^test.com [NC]  
  3. RewriteRule ^(.*)$ http://www.test.com/$1 [L,R=301