欢迎各位兄弟 发布技术文章

这里的技术是共享的

You are here

iis 伪静态 http.conf

shiping1 的头像

RegistrationName=Longshui Chen
RegistrationCode=7Z3NU-7MAP5-JZDPH-PR9GK
[ISAPI_Rewrite]
CacheClockRate 3600
RepeatLimit 32

#这个是重定向
RewriteCond %{HTTP:Host} ^fzdddxx.com$
RewriteRule (.*) http://www.fzdddxx.com$1 [NC,R=301]

#这个是手机跳转 肯定是好的
RewriteCond %{HTTP_USER_AGENT} ^.*android.*$ [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^.*blackberry.*$ [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^.*googlebot-mobile.*$ [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^.*iemobile.*$ [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^.*ipad.*$ [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^.*iphone.*$ [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^.*opera mobile.*$ [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^.*palmos.*$ [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^.*symbian.*$ [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^.*webos.*$ [NC]
RewriteRule ^(.*)$ http://3g.ccccc.com/ [NC,R=301]



RewriteRule ^/ask/index.html$ /ask/index.php
RewriteRule ^/ask/([0-9]+).html$ /ask/?ct=question&askaid=$1
RewriteRule ^/ask/([0-9]+)$ /ask/?ct=browser&tid=$1
RewriteRule ^/ask/t([0-9]+)$ /ask/?ct=browser&tid2=$1
#这个是提问伪静态
RewriteRule ^/ask/ask.html$ /ask/?ct=question&ac=ask_complete
#这个是提问伪静态
RewriteRule ^/ask/ask([0-9]+).html$ /ask/?ct=question&ac=ask_complete&tid=$1

#这个是保存伪静态
RewriteRule ^/ask/ask-save.html$ /ask/?ct=question&ac=ask_save



#这个是安全 静止php
RewriteEngine on  RewriteCond % !^$  
RewriteRule uploads/(.*).(php)$ – [F]  
RewriteRule data/(.*).(php)$ – [F]  
RewriteRule templets/(.*).(php)$ – [F]

普通分类: