月度存档: 十一月 2013

discuz手机访问默认标准版的方法

source/class/discuz/discuz_application.php
找到

176行

‘mobiletpl’ => array(‘1’ => ‘mobile’, ‘2’ => ‘touch‘, ‘3’ => ‘wml’,’yes’ => ‘mobile’),

改为

‘mobiletpl’ => array(‘1’ => ‘mobile’, ‘2’ => ‘mobile‘, ‘3’ => ‘wml’,’yes’ => ‘mobile’),

 

直接屏蔽触摸

最近开始折腾蚂蚁分类信息

回老家看看就想整老家的分类信息网站

幸好自己有一份正版授权的mymps跟客服要了一份最新版本

其实mymps很好破解就一个页面自己写就可以

但个人喜欢正版也很早之前买了份

这几天就得记录mymps的修改方便以后查看

自己常用htaccess 记录一下

<code>========================
缓存
ExpiresActive On
ExpiresByType image/gif A86400
ExpiresByType image/jpg A86400
ExpiresByType image/png A86400
ExpiresByType text/javascript A86400
ExpiresByType application/x-javascript A86400
===================
重定向
RewriteCond %{http_host} ^xiaopiao.net [NC]
RewriteRule ^(.*)$ http://www.xiaopiao.net/$1 [L,R=301]

==========================
只允许某个IP访问
deny from all

allow from 58.245.64.0

================================
只允许某个文件指定IP访问
<Files member.php>
deny from all
allow from 58.245.64
allow from 58.245.65
</Files>
================================
RewriteCond $1 !^(city/shanghai)/
RewriteCond %{HTTP_HOST} ^shanghai.xiaopiao.net [NC]
RewriteRule ^(.*)$ /city/shanghai/$1 [L]</code>