首先,你要弄清楚你的主机空间是windows系统呢,还是Lunix系统。因为国内大多数空间商都用的是win主机,所以咱们就着重说这个吧,把下面复制下来保存在记事本里面,然后把名字改成httpd.ini。传到空间根目录试试,一般来说,都能直接访问了,如果还不行,说明你没有权限,那只好联系你的空间商了。
伪静态代码:(保存文件名字为httpd.ini,传到网站根目录【要注意的是此文件要放在空间的根目录下面】
[ISAPI_Rewrite] # 3600 = 1 hour CacheClockRate 3600 RepeatLimit 32 RewriteRule /rss.php(.*) /rss.php$1 [L] RewriteRule /tb.php(.*) /tb.php$1 [L] RewriteRule /favicon.ico /favicon.ico [L] RewriteRule /xmlrpc.php(.*) /xmlrpc.php$1 [L] RewriteRule /wlwmanifest.xml /wlwmanifest.xml [L] RewriteRule /(t|m)$ /$1/ [R] RewriteRule /(admin|content|include|t|m)/(.*) /$1/$2 [L] RewriteRule /install.php(.*) /install.php$1 [L] RewriteRule /emlog_toolkit.php(.*) /emlog_toolkit.php$1 [L] RewriteRule /up(\d.\d.\d)to(\d.\d.\d).php(.*) /up$1to$2.php$3 [L] RewriteRule ^/$ /index.php [L] RewriteRule /(.*) /index.php/$1 [L]
Lunix系统的话一般根目录都有,可以询问你的空间商。