最近 .htaccess をいじることが多いんですが, 融通効かないなと思うことが多々あります. .htaccess を Ruby で書くことができれば... ということでとりあえずプロトタイプ程度ですが作ってみました. DSL の記述例 これが以下のように出力されます. <IfModule mod_rewrite.c> RewriteEngine on <Limit GET> RewriteRule ^/user/(.*)$ /user.cgi?id=$1 [L,R] </Limit> </IfModule> Order Deny,Allow Deny from All Allow from 192.168.0.11 Allow from 192.168.0.12 Allow from 192.168.0.13 Allow from 192.168.0.14 Allow from 192
![.htaccess を Ruby の DSL で記述してみる | Born Too Late](https://cdn-ak-scissors.b.st-hatena.com/image/square/024c53178450b73e6589205cbb2f4e14a91797ff/height=288;version=1;width=512/http%3A%2F%2Fblog.yuyat.jp%2Fwp-content%2Fuploads%2FB000ELJAI8.01._SCLZZZZZZZ_V56939722_.jpg)