马上注册,结交更多好友,享用更多功能,让你轻松玩转合天下互动社区。
您需要 登录 才可以下载或查看,没有帐号?中文注册
x
这个只是通过httpd.ini伪静态的解决方案解决出现的问题。
[ISAPI_Rewrite]
# Defend your computer from some worm attacks
#RewriteRule .*(?:global.asa|default.ida|root.exe|..).* . [F,I,O]
# 3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
# Protect httpd.ini and httpd.parse.errors files
# from accessing through HTTP
# Rules to ensure that normal content gets through
RewriteRule /name/(.*) /name/$1 [L] 注:这段代码是解决博客下的目录不能访问的问题。
RewriteRule /software-files/(.*) /software-files/$1 [L]
RewriteRule /images/(.*) /images/$1 [L]
RewriteRule /sitemap.xml /sitemap.xml /sitemap.html /sitemap_baidu.xml [L] 注:这段代码是解决文件不能访问的,比如你的文件是demo.php,那么就写:RewriteRule /demo.php [L]
RewriteRule /favicon.ico /favicon.ico [L]
# For file-based wordpress content (i.e. theme), admin, etc.
RewriteRule /wp-(.*) /wp-$1 [L]
# For normal wordpress content, via index.php
RewriteRule ^/$ /index.php [L]
RewriteRule /(.*) /index.php/$1 [L]
使用上面的httpd.ini代码前请删除注释部分。
将新建立的httpd.ini文件上传到网站的根目录下即可。本站使用此方法解决固定连接问题。 |