ロボット対策 アクセス制限の仕方も参照せよ。 要約 検索エンジンなどのロボットをブロックするためには以下のような方法がある: /robots.txt を作成する。 <meta name="robots" content="noindex,nofollow"> と HTML file の中に書いておく。キャッシュされた... 続きを読む
Make your pages load faster by combining and compressing javascript and css files As some of you may know, I am currently working on a content management system. Although I am not able to share all of the code - it is proprietary after all - ... 続きを読む
一昨日の夜中の 2 時頃、鼻歌 trickster 氏がハマっていた mod_rewrite ネタ。 あ、ちなみに相変わらず鼻歌 trickster 氏は鼻歌歌ってます。 reverse proxy の裏にある Apache にて、特定の IP アドレス以外全て Rewrite させるという処理を入れたい場合、環境... 続きを読む
mod_rewriteを使う場合、URLに「%2F」が含まれるとApacheの設定によっては思い通りに動作しない可能性があります。 mod_rewriteについては第15回のメーリングリストを参照していただくとして、まずは以下のようなURLを考えてみましょう。 http://example.com/se... 続きを読む
■[Apache]mod_rewriteでIP単位で表示を変更する mod_rewriteは非常に便利。 ここでは、システムメンテナンス時などを想定した設定を考えてみます。 社内からのアクセスには通常のページを表示するが、社外からはメンテナンスを通知したページを表示する。 この... 続きを読む
URL を操作するためのスイス製のアーミーナイフ、mod_rewrite へようこそ! このモジュールは、(正規表現パーサに基づく)ルールベースの 書き換えエンジンを使い、要求された URL を適宜書き換えます。 サポートするルールの数、および各ルールを適用する際の... 続きを読む
Overview The mod_rewrite cheat sheet is a one-page reference sheet, listing flags for the RewriteRule and RewriteCond directives, list of server variables, a regular expression guide and several examples of common rules. If you're new to URL ... 続きを読む
■ mod_rewriteリファレンス URL書き換えエンジンmod_rewriteクイックリファレンス[Apache1.3x, Apache2.0x] Copyright© N/A Rewriteモジュール(mod_rewrite)はApache Webサーバーにおいて、クライントからリクエストのあったURLの内部書き換えや、さまざまな環... 続きを読む