Windows IIS系统的服务器或空间在web.config文件添加:

<rewrite>
<rules>
<rule name="OrgPage" stopProcessing="true">
<match url="^(.*)$" />
<conditions logicalGrouping="MatchAll">
<add input="{HTTP_HOST}" pattern="^(.*)$" />
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="index.php/{R:1}" />
</rule>
</rules>
</rewrite>

Apache系统的服务器或空间在.htaccess文件添加:

<IfModule mod_rewrite.c>
Options +FollowSymlinks -Multiviews
RewriteEngine on

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L]
</IfModule>

不行就去掉?号:RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]

还不行就替换成:RewriteRule ^(.*)$ index.php [L,E=PATH_INFO:$1]

Nginx系统的服务器或空间在nginx.conf文件添加:

Nginx需要开启PATHINFO,因为每个版本的开启不一样,请自行翻阅相关资料配置

location / {
   if (!-e $request_filename) {
   rewrite  ^(.*)$  /index.php?s=/$1  last;
   break;
    }
 }

IIS6 WIN2003在.htaccess文件添加:

<IfModule mod_rewrite.c>
Options +FollowSymlinks
RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?s=$1 [QSAPTL]
</IfModule>