gzip压缩
/** 开启gzip压缩 */
ob_start('ob_gzhandler');
查看压缩效果:http://tool.chinaz.com/Gzips/
Rewrite重写、伪静态
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.zhanghongru.com
RewriteRule (.*) http://zhanghongru.com/$1 [R=301,L]
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{SERVER_NAME}/$1 [R,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php [L]
</IfModule>
www.zhanghongru.com跳转到zhanghongru.com
http跳转到https
Typecho伪静态,去掉连接中的indexphp
Windows server 2012修改桌面图标
rundll32.exe shell32.dll,Control_RunDLL desk.cpl,,0