网速真慢

在Guest House的Lobby上网,用的是无线网络,速度真的好慢,一个网页都要N久才能打开,真的是领教了这边的网速。没有把移动硬盘带过来,真失策,给小熊的QQ留言了,看看能不能邮寄过来,怪自己。

本来不想上网,受不了网速,可外面一直在下雨,电视信号都有点受影响。这两天手机找不到了,也不知道放哪里了,真粗心。同屋的印度尼西亚小伙子正在斋戒fasting,天天啥都不能吃,太辛苦了,人家的信仰真的好虔诚,每天都去祈祷。

今天就写这么多吧!

qq 空间 RSS源地址

http://feeds.qzone.qq.com/cgi-bin/cgi_rss_out?uin=QQ号码

把QQ号码做相应的修改即可,比如:

http://feeds.qzone.qq.com/cgi-bin/cgi_rss_out?uin=77341098

一个适用于Sablog的一个htaccess

在网上看到的,丰富了部分功能,拿来参考一下,也许有天用得上。

PHP代码
  1. # BEGIN Sablog-X Rewrite   
  2. RewriteEngine On   
  3. # 文章   
  4. RewriteRule ^(.*)/show-([0-9]+)-([0-9]+)\.html$ $1/index.php?action=show&id=$2&page=$3 [L]   
  5. # 分类   
  6. RewriteRule ^(.*)/category-([0-9]+)-([0-9]+)\.html$ $1/index.php?action=index&cid=$2&page=$3 [L]   
  7. # 只带月份的归档   
  8. RewriteRule ^(.*)/archives-([0-9]+)-([0-9]+)\.html$ $1/index.php?action=index&setdate=$2&page=$3 [L]   
  9. # 用户列表、高级搜索、注册、登陆   
  10. RewriteRule ^(.*)/(archives|search|reg|login|index|links)\.html$ $1/index.php?action=$2 [L]   
  11. # 评论列表、标签列表、引用列表 带分页   
  12. RewriteRule ^(.*)/(comments|tagslist|trackbacks|index)-([0-9]+)\.html$ $1/index.php?action=$2&page=$3 [L]   
  13. # 具体评论规则   
  14. RewriteRule ^(.*)/comments-([0-9]+)-([0-9]+)\.html$ $1/index.php?action=show&id=$2&cmid=$3&goto=newcm [L]   
  15. # 具体标签规则   
  16. RewriteRule ^(.*)/(.*)-([0-9]+)\.html$ $1/index.php?action=tags&item=$2&page=$3 [L]   
  17. # google map规则   
  18. RewriteRule ^(.*)/sitemap\.xml$ $1/sitemap.php [L]   
  19. END Sablog-X  

来源:http://www.geniusy.com/sablog/show-32-1.html

Tags: sablog, htaccess

主域名指向子目录

# .htaccess main domain to subfolder redirect
# Copy and paste the following code into the .htaccess file
# in the public_html folder of your hosting account
# make the changes to the file according to the instructions.

RewriteEngine on
# Change yourdomain.com to be your main domain.

RewriteCond %{HTTP_HOST} ^(www.)?yourmaindomain.com$

# Change 'subfolder' to be the folder you will use for your main domain.

RewriteCond %{REQUEST_URI} !^/subfolder/

# Don't change this line.

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

# Change 'subfolder' to be the folder you will use for your main domain.

RewriteRule ^(.*)$ /subfolder/$1

# Change yourdomain.com to be your main domain again.

# Change 'subfolder' to be the folder you will use for your main domain

# followed by / then the main file for your site, index.php, index.html, etc.

RewriteCond %{HTTP_HOST} ^(www.)?yourmaindomain.com$

RewriteRule ^(/)?$ subfolder/ [L]