{"id":1206,"date":"2013-05-03T17:21:27","date_gmt":"2013-05-03T21:21:27","guid":{"rendered":"http:\/\/www.a2life.info\/w\/?p=1206"},"modified":"2013-05-03T18:35:18","modified_gmt":"2013-05-03T22:35:18","slug":"iis-%e3%81%aeurls-rewrite-%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6modx%e3%81%aefriendly-url-%e3%82%92%e6%9c%89%e5%8a%b9%e3%81%ab%e3%81%99%e3%82%8b%e3%80%82","status":"publish","type":"post","link":"https:\/\/www.a2life.info\/w\/?p=1206","title":{"rendered":"IIS \u306eurls rewrite \u3092\u4f7f\u3063\u3066modx\u306efriendly url \u3092\u6709\u52b9\u306b\u3059\u308b\u3002"},"content":{"rendered":"<p>\u305f\u3068\u3048IIS\u30b5\u30fc\u30d0\u30fc\u3092\u4f7f\u3063\u3066\u3044\u3066\u3082Helicon Ape \u3068\u3044\u3046\u30c4\u30fc\u30eb\u3092IIS\u306b\u7d44\u307f\u8fbc\u3081\u3070\u3001modx\u306b\u3064\u3044\u3066\u304f\u308b.htaccess \u3092\u305d\u306e\u307e\u307e\u4f7f\u3063\u306efriendly url \u3092\u6d3b\u7528\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u3066\u3044\u308b\u308f\u3051\u3060\u304c\u3001\u4eca\u56de\u306fIIS\u306eURL rewrite module (IIS 7 \u306e\u5834\u5408\u306f\u5225\u9014\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3067\u7d44\u307f\u8fbc\u3080)\u3092\u4f7f\u3063\u3066\u540c\u3058\u3053\u3068\u3092\u3084\u3063\u3066\u307f\u305f\u3002<\/p>\n<p>IIS\u306eGUI\u3067\u30eb\u30fc\u30eb\u3092\u4f5c\u308b\u4f5c\u696d\u306b\u306a\u308b\u304c\u3001.htaccess \u306e\u8a18\u8ff0\u3092\u53c2\u8003\u306b\u3057\u3066\u3084\u3063\u3066\u307f\u305f\u3089\u52d5\u304f\u3088\u3046\u306b\u306a\u3063\u305f\u3002<\/p>\n<p>modx \u306b\u4ed8\u5c5e\u3059\u308b.htfile \u3067furl \u306b\u95a2\u9023\u3059\u308b\u3068\u3053\u308d\u306f \u4ee5\u4e0b\u306e\u90e8\u5206\u3068\u601d\u308f\u308c\u308b<br \/>\n<code><br \/>\nRewriteCond %{REQUEST_FILENAME} !-f<br \/>\nRewriteCond %{REQUEST_FILENAME} !-d<br \/>\nRewriteRule ^(.*)$ index.php?q=$1 [L,QSA]<br \/>\n<\/code><br \/>\n\u3053\u308c\u3092\u89e3\u91c8\u3059\u308b\u3068<br \/>\n\u6761\u4ef6\u3068\u3057\u3066\u3001\u8981\u6c42\u3055\u308c\u3066\u3044\u308b\u30d5\u30a1\u30a4\u30eb\u540d\u304c\u30d5\u30a1\u30a4\u30eb\u3068\u3057\u3066\u5b58\u5728\u3057\u306a\u3044\u3001\u304b\u3064<br \/>\n\u30d5\u30a9\u30eb\u30c0\u30fc\u3068\u3057\u3066\u3082\u5b58\u5728\u3057\u306a\u3044\u5834\u5408\u3001\u305d\u308c\u306f\u3064\u307e\u308a\u52d5\u7684\u306b\u751f\u6210\u3055\u308c\u308bHTML\u30da\u30fc\u30b8\u306a\u306e\u3067\u3001<br \/>\n\u4ee5\u4e0b\u306e\u66f8\u304d\u63db\u3048\u30eb\u30fc\u30eb\u3092\u9069\u7528\u3059\u308b\u3002<br \/>\n\u66f8\u304d\u63db\u3048\u30eb\u30fc\u30eb\uff1a\u3000\u6e21\u3055\u308c\u305f\u6587\u5b57\u5217\uff04\uff11\u3092\u4ee5\u4e0b\u306e\u30d1\u30bf\u30fc\u30f3\u306b\u3057\u3066\u52a0\u5de5\u3059\u308b<br \/>\n&#8220;index.php?q=$1&#8221;<br \/>\n\u3055\u3089\u306b\u3000\u5f8c\u308d\u306b\u30af\u30a8\u30ea\u30fc\u304c\u3064\u3044\u3066\u3044\u308b\u5834\u5408\u306f\u305d\u306e\u307e\u307e\u6e21\u3057\u3001\u3000\u4e0b\u6d41\u306e\u51e6\u7406\u3092\u884c\u308f\u306a\u3044\u3002<\/p>\n<p>IIS\u306eGUI\u4e0a\u306eRule\u3067\u306f\u3000\u3053\u308c\u3092\u3000Inbound rule \u3068\u3057\u3066\u8ffd\u52a0\u3059\u308b\u304c\u3001\u305d\u306e\u5185\u5bb9\u306f\u4ee5\u4e0b\u306e\u3054\u3068\u304f\u306a\u308b\u3002<\/p>\n<p>Matches Pattern, &#8220;Regular expression&#8221;<br \/>\n&#8220;^(.*\\.html)$&#8221;\u3000<= RewriteRule \u306e\u6700\u521d\u306e\u90e8\u5206*1\nConditions : \"Matches All\"\n{REQUEST_FILENAME} \"file does not exist\"\u3000\n{REQUEST_FILENAME} \"Directory does not exist\"\n\nAction type  \"rewrite\"\nindex.php?q={R:1}   <= RewriteRule index.php?q=$1 \u306b\u5339\u6575\n\nAppend ques : yes  <= [QSA] \u306b\u5339\u6575\nStop Processing:\u3000yes <= [L] \u306b\u5339\u6575\n\u5f53\u305f\u308a\u524d\u306a\u304c\u3089\u3001\u540c\u3058\u6761\u4ef6\u3092\u8a18\u8ff0\u3057\u3066\u3044\u308b\u306e\u3067\u3001\u305d\u308c\u307b\u3069\u8ff7\u308f\u305a\u306b\u3067\u304d\u305f\u3002 \u306f\u307e\u308a\u305d\u3046\u306b\u306a\u3063\u305f\u3068\u3053\u308d\u306fRegular Expression \u306e\u90e8\u5206\u3067.html\u3092\u660e\u793a\u3057\u3066\u3044\u308b\u90e8\u5206\u3002\u3053\u308c\u3092\u3084\u3089\u306a\u3044\u3068loop\u3057\u3066\u3057\u307e\u3046\u3002\u3000\u307b\u304b\u306e\u3068\u3053\u308d\u306e\u6761\u4ef6\u4ed8\u3051\u3067\u3082\u3063\u3068\u7dba\u9e97\u306b\u8a18\u8ff0\u3067\u304d\u308b\u304b\u3082\u3057\u308c\u306a\u3044\u3002\n\u3068\u308a\u3042\u3048\u305a\u3001\u3053\u308c\u3067OK\n<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u305f\u3068\u3048IIS\u30b5\u30fc\u30d0\u30fc\u3092\u4f7f\u3063\u3066\u3044\u3066\u3082Helicon Ape \u3068\u3044\u3046\u30c4\u30fc\u30eb\u3092IIS\u306b\u7d44\u307f\u8fbc\u3081\u3070\u3001modx\u306b\u3064\u3044\u3066\u304f\u308b.htaccess \u3092\u305d\u306e\u307e\u307e\u4f7f\u3063\u306efriendly url \u3092\u6d3b\u7528\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u3066\u3044\u308b\u308f\u3051\u3060\u304c\u3001\u4eca\u56de\u306fIIS\u306eURL rewrite module (IIS 7 \u306e\u5834\u5408\u306f\u5225\u9014\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3067\u7d44\u307f\u8fbc\u3080)\u3092\u4f7f\u3063\u3066\u540c\u3058\u3053\u3068\u3092\u3084\u3063\u3066\u307f\u305f\u3002 <a href=\"https:\/\/www.a2life.info\/w\/?p=1206\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[27,1,7,3],"tags":[58],"class_list":["post-1206","post","type-post","status-publish","format-standard","hentry","category-modx","category-uncategorized","category-web-design-study","category-web-making","tag-modx"],"_links":{"self":[{"href":"https:\/\/www.a2life.info\/w\/index.php?rest_route=\/wp\/v2\/posts\/1206","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.a2life.info\/w\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.a2life.info\/w\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.a2life.info\/w\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.a2life.info\/w\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1206"}],"version-history":[{"count":7,"href":"https:\/\/www.a2life.info\/w\/index.php?rest_route=\/wp\/v2\/posts\/1206\/revisions"}],"predecessor-version":[{"id":1213,"href":"https:\/\/www.a2life.info\/w\/index.php?rest_route=\/wp\/v2\/posts\/1206\/revisions\/1213"}],"wp:attachment":[{"href":"https:\/\/www.a2life.info\/w\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1206"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.a2life.info\/w\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1206"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.a2life.info\/w\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1206"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}