Joomla 在IIS下的重写规则
用户评价: / 10
好 
作者:深圳网站建设   
周四, 2012年 07月 05日 11:07

[ISAPI_Rewrite]

# Block external access to the httpd.ini and httpd.parse.errors files
RewriteRule /httpd(?:\.ini|\.parse\.errors) / [F,I,O]
# Block external access to the Helper ISAPI Extension
RewriteRule .*\.isrwhlp / [F,I,O]

#Fix MyBlog's SEF URLs
RewriteRule ^/(.*)\.html /$1

#Keep Isapi_Rewrite from rewriting URLs that look like regular files
RewriteRule ^/(.*\.[a-zA-Z1-9]{2,4}) /$1 [L]

# Excluding the administrator section
RewriteRule ^/(administrator\/.*)  /$1 [L]

#Get rid of the index.php
RewriteRule ^/(.*) /index.php\?/$1 [I,L] 

 请将以上规则为httpd.ini存放在根目录下即可

 

 

评论信息

分享到: