24
10
2010
.htaccess 判断域名跳转
bigCat Posted in Linux - 0 CommentRewriteEngine on
RewriteCond %{HTTP_HOST} caitou.com$ [NC]
RewriteRule ^(.*)$ http://ooxx.me/$1 [L,R=301]
RewriteEngine on
RewriteCond %{HTTP_HOST} caitou.com$ [NC]
RewriteRule ^(.*)$ http://ooxx.me/$1 [L,R=301]
linux 下 tar 打包不会自动打包 . 开头的隐藏文件
又不能 .*
那就下面这种,哇哈哈
tar -czf dot.tar.gz * .[!.]*
RewriteEngine on
RewriteCond % !^$
RewriteCond % !^http://(www\.)?mydomain.com/.*$ [NC]
RewriteRule \.(php)$ - [F]