mod_rewriteでの最後の砦 - As a Futurist...ã‚’ã¿ã¦ã€åƒ•ã‚‚Apacheã§URLã«%2Fã‚’å«ã‚€ãƒªã‚¯ã‚¨ã‚¹ãƒˆã‚’リãƒãƒ¼ã‚¹ãƒ—ãƒã‚ã‚·ã™ã‚‹ã¨ãã«å›°ã£ãŸã“ã¨ãŒã‚ã£ãŸãªãƒ¼ã¨ã„ã†ã®ã‚’æ€ã„出ã—ãŸã€‚
AllowEncodedSlashes On RewriteRule ^/(.*)$ http://backend/$1 [QSA,L,P]
ã¿ãŸã„ãªè¨å®šã‚’書ã„ã¦ã‚‹ã¨ãã«frontendã«
http://frontend/keyword/Fate%2Fstay+night
ãªãƒªã‚¯ã‚¨ã‚¹ãƒˆãŒæ¥ã‚‹ã¨ã€ã“ã®è¨å®šã ã¨backendã«ã¯
http://backend/keyword/Fate/stay+night
%2FãŒãƒ‡ã‚³ãƒ¼ãƒ‰ã•ã‚ŒãŸURLã«ãƒ—ãƒã‚ã‚·ã—ã¦ã—ã¾ã†ï¼
%2Fã®ã¾ã¾ãƒ—ãƒã‚ã‚·ã™ã‚‹ã«ã¯ä»¥ä¸‹ã®ã‚ˆã†ã«è¨å®šã‚’ã™ã‚Œã°ã‚ˆã„。
AllowEncodedSlashes On RewriteCond %{THE_REQUEST} /([^\ ]*) RewriteRule ^/(.*)$ http://backend/%1 [QSA,L,P,NE]
RewriteCondã§ç”Ÿã®ãƒªã‚¯ã‚¨ã‚¹ãƒˆæ–‡å—列ã«ãƒžãƒƒãƒãƒ³ã‚°ã‚’掛ã‘ã¦ã€RewriteCondã®å¾Œæ–¹å‚ç…§(%N)を使ãˆã°%2Fã®ã¾ã¾ãƒ—ãƒã‚ã‚·ã§ãã‚‹ã¨ã„ã†ã‚ã‘ã§ã—ãŸãƒ¼ã€‚
ãã‚Œã§ã¯AKB48 22ndシングル 選抜総選挙チャンネル監視æ¥å‹™ã«æˆ»ã‚Šã¾ã™âˆ ( ̄∧ ̄)