|
| ||||||||
|
巻き戻し中。
|
|
2007-09-04(火) 今日もまた [長年日記]
_ 捗る
今日は仕事が午後も捗った。
18:30でサクッとやめて近所に出来た仮店舗街へ「現地調査」に。
再開発で駅周辺のお店が集められているわけだが、
小綺麗になって集合しているからハシゴしちゃいそうだwww
RewriteEngine on # If mobile, use index.rb RewriteCond %{REQUEST_URI} ^\/rewind\/([0-9]+)\.html$ RewriteCond %{HTTP_USER_AGENT} ^DoCoMo [OR] RewriteCond %{HTTP_USER_AGENT} ^J-PHONE [OR] RewriteCond %{HTTP_USER_AGENT} ^MOT- [OR] RewriteCond %{HTTP_USER_AGENT} ^KDDI- [OR] RewriteCond %{HTTP_USER_AGENT} ^Vodafone [OR] RewriteCond %{HTTP_USER_AGENT} ^UP\.Browser [OR] RewriteCond %{HTTP_USER_AGENT} ^SoftBank RewriteRule .* index.rb?date=%1 [L] # If mobile, go to index.rb RewriteCond %{REQUEST_URI} ^\/rewind\/$ RewriteCond %{QUERY_STRING} ^$ RewriteCond %{HTTP_USER_AGENT} ^DoCoMo [OR] RewriteCond %{HTTP_USER_AGENT} ^J-PHONE [OR] RewriteCond %{HTTP_USER_AGENT} ^MOT- [OR] RewriteCond %{HTTP_USER_AGENT} ^KDDI- [OR] RewriteCond %{HTTP_USER_AGENT} ^Vodafone [OR] RewriteCond %{HTTP_USER_AGENT} ^UP\.Browser [OR] RewriteCond %{HTTP_USER_AGENT} ^SoftBank RewriteRule .* index.rb [L] # If search engine, goto html focebily RewriteCond %{REQUEST_URI} ^\/rewind\/?date=([0-9]+$) RewriteCond %{HTTP_USER_AGENT} msnbot [NC,OR] RewriteCond %{HTTP_USER_AGENT} psbot [NC,OR] RewriteCond %{HTTP_USER_AGENT} Googlebot [NC,OR] RewriteCond %{HTTP_USER_AGENT} Googlebot/2 [NC,OR] RewriteCond %{HTTP_USER_AGENT} Googlebot/1 [NC,OR] RewriteCond %{HTTP_USER_AGENT} Yahoo [NC,OR] RewriteCond %{HTTP_USER_AGENT} Yahoo! [NC,OR] RewriteCond %{HTTP_USER_AGENT} Y!J-SRD RewriteRule .* static/%1.html [L] # If search engine, goto index.rb.org "Non static" focebily RewriteCond %{REQUEST_URI} ^\/rewind\/$ RewriteCond %{HTTP_USER_AGENT} msnbot [NC,OR] RewriteCond %{HTTP_USER_AGENT} psbot [NC,OR] RewriteCond %{HTTP_USER_AGENT} Googlebot [NC,OR] RewriteCond %{HTTP_USER_AGENT} Googlebot/2 [NC,OR] RewriteCond %{HTTP_USER_AGENT} Googlebot/1 [NC,OR] RewriteCond %{HTTP_USER_AGENT} Yahoo [NC,OR] RewriteCond %{HTTP_USER_AGENT} Yahoo! [NC,OR] RewriteCond %{HTTP_USER_AGENT} Y!J-SRD RewriteRule .* index.rb.org [L] # If search engine, goto update.rb.org "Non static" focebily RewriteCond %{REQUEST_URI} ^\/rewind\/update.rb$ RewriteCond %{HTTP_USER_AGENT} msnbot [NC,OR] RewriteCond %{HTTP_USER_AGENT} psbot [NC,OR] RewriteCond %{HTTP_USER_AGENT} Googlebot [NC,OR] RewriteCond %{HTTP_USER_AGENT} Googlebot/2 [NC,OR] RewriteCond %{HTTP_USER_AGENT} Googlebot/1 [NC,OR] RewriteCond %{HTTP_USER_AGENT} Yahoo [NC,OR] RewriteCond %{HTTP_USER_AGENT} Yahoo! [NC,OR] RewriteCond %{HTTP_USER_AGENT} Y!J-SRD RewriteRule .* update.rb.org [L] # If there is cache, output from cache RewriteCond %{REQUEST_URI} ^\/rewind\/([0-9]+\.html$) RewriteCond /home/www/htdocs/rewind/static/%1 -f RewriteRule .* static/%1 [L] # If there is no cache, output from cgi RewriteRule ^([0-9]+)\.html$ index.rb?date=$1 [L] RewriteRule ^([0-9]+[-]+[0-9]+)\.html$ index.rb?date=$1 [L] # If it is comment, go to index.rb RewriteCond %{REQUEST_URI} ^\/rewind\/$ RewriteCond %{REQUEST_METHOD} ^POST$ RewriteRule .* index.rb [L] # If selecting a category, go to index.rb RewriteCond %{REQUEST_URI} ^\/rewind\/$ RewriteCond %{REQUEST_METHOD} ^GET$ RewriteCond %{QUERY_STRING} ^.+$ RewriteRule .* index.rb [L] # If there is no caache for top, go to index.rb RewriteCond %{REQUEST_URI} ^\/rewind\/$ RewriteCond %{QUERY_STRING} ^$ RewriteCond /home/www/htdocs/rewind/index.html !-f RewriteRule .* index.rb [L]
_ 検索エンジンは
キャッシュ作成のトリガにさせない。
キャッシュがなければ404でも喰らっておけと。。。
最新を見に来たときも改造前のindex.rbで返すだけ。
本当は負荷対策という意味でこれは嫌なのだが、最新の表示を出来損ないにされちゃうよりはマシ。
パフォーマンス改善の定石で、無駄なログ出力も停止。
当分はこれで維持だな。
Tweets by RC31E | |||||||||
| |||||||||
| |||||||||
|