{"id":325,"date":"2008-09-14T02:14:12","date_gmt":"2008-09-13T17:14:12","guid":{"rendered":"http:\/\/www.bton.net46.net\/?p=325"},"modified":"2009-07-27T15:38:16","modified_gmt":"2009-07-27T06:38:16","slug":"%e3%80%90ec-cube%e3%80%91%e3%83%9a%e3%83%bc%e3%82%b8%e3%81%aeurl%e3%82%92%e9%9d%99%e7%9a%84html%e3%81%a7%e8%a1%a8%e7%a4%ba%e3%81%99%e3%82%8b%e3%81%ab%e3%81%af%e3%80%82","status":"publish","type":"post","link":"https:\/\/bton.papalabs.net\/?p=325","title":{"rendered":"\u3010EC-CUBE\u3011\u30da\u30fc\u30b8\u306eURL\u3092\u9759\u7684HTML\u3067\u8868\u793a\u3059\u308b\u306b\u306f\u3002"},"content":{"rendered":"<p>\uff33\uff25\uff2f\u306b\u6709\u52b9\u306a\u9759\u7684HTML\u8868\u793a\u306bPHP\u30da\u30fc\u30b8\u306eURL\u3092\u5909\u63db\u3059\u308b\u3002<\/p>\n<p><strong>\uff11\uff09\/products\/\u4ee5\u4e0b\u306b\u300c.htaccess\u300d\u30d5\u30a1\u30a4\u30eb\u3092\u8a2d\u5b9a\u3059\u308b\u3002<\/strong><br \/>\nmod_rerwite\u3092\u5229\u7528\u3059\u308b\u306e\u3067\u3001\u300c.htaccess\u300d\u30d5\u30a1\u30a4\u30eb\u306b\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306b\u8a18\u8ff0\u3057\u3066\u3001FTP\u3067\/products\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308b\u3002<\/p>\n<blockquote><p>RewriteBase \/products\u3000<em><strong>\u2190\u3053\u308c\u306f\u3001\u8981\u3089\u306a\u3044\u30b5\u30fc\u30d0\u3082\u3042\u308b\u3002<\/strong><\/em><br \/>\nRewriteEngine on<br \/>\nRewriteRule ^detail([0-9]+).html+ products\/detail.php?product_id=$1 [L]<br \/>\nRewriteRule ^list([0-9]+).html+ products\/list.php?category_id=$1 [L]<\/p><\/blockquote>\n<p><em>http:\/\/www.\u30c9\u30e1\u30a4\u30f3\/products\/detail.php?product_id=\u25cb\u25cb<\/em><\/p>\n<p>\u3068\u3044\u3046URL\u3092<\/p>\n<p><em>http:\/\/www.\u30c9\u30e1\u30a4\u30f3\/products\/detail\u25cb\u25cb.html<\/em><\/p>\n<p>\u3068\u5909\u63db\u3057\u3066\u3001\u3069\u3061\u3089\u306eURL\u3067\u30a2\u30af\u30bb\u30b9\u3057\u3066\u3082\u3001\u540c\u3058\u30da\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u308b\u3088\u3046\u306b\u3059\u308b\u3053\u3068\u306b\u306a\u308b\u3002<br \/>\n\u5909\u63db\u3055\u308c\u308b\u307b\u3046\u306eURL\u306e\u8868\u793a\u3092\u5909\u3048\u305f\u3044\u3068\u304d\u306f\u3001RewriteRule\u306e\u8868\u8a18\u3092\u5909\u3048\u308c\u3070OK\u3002<\/p>\n<p><span>\u4f8b\u3048\u3070\u3001<br \/>\n<\/span><em>RewriteRule\u00a0detail\\\/([0-9]+)\\\/?\u00a0products\/detail.php?product_id=$1[L]<\/em><br \/>\n\u3068\u3059\u308c\u3070\u3001\u300c<em>products\/detail\/\u25cb\u25cb<\/em>\u300d\u3068\u306a\u308b\u3002<\/p>\n<p>\u3053\u306e\u6642\u70b9\u3067\u3001<br \/>\n<em>http:\/\/www.\u30c9\u30e1\u30a4\u30f3\/products\/detail\u25cb\u25cb.html<\/em><\/p>\n<p><span>\u3067\u30a2\u30af\u30bb\u30b9\u3067\u304d\u3066\u3044\u308c\u3070\u3001\u3053\u3053\u307e\u3067\u306e\u8a2d\u5b9a\u306fOK\u3002<br \/>\n\u3082\u3057\u3001\u30a2\u30af\u30bb\u30b9\u3067\u304d\u306a\u3051\u308c\u3070\u3001\u30b5\u30fc\u30d0\u306e\u8a2d\u5b9a\u3092\u78ba\u8a8d\u3059\u308b\u306a\u3069\u3067\u3001\u5bfe\u5fdc\u3002<\/span><\/p>\n<p><span><strong>\uff12\uff09EC-CUBE\u306e\u7ba1\u7406\u753b\u9762\u3067\u3001\u30b7\u30b9\u30c6\u30e0\u7ba1\u7406\u30e1\u30cb\u30e5\u30fc\u304b\u3089\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u5909\u66f4\u3059\u308b\u3002<\/strong><\/span><\/p>\n<p><span>\u534a\u5206\u3088\u308a\u4e0b\u3042\u305f\u308a\u306b\u300cDETAIL_P_HTML\u300d\u3068\u3044\u3046\u6587\u5b57\u5217\u304c\u3042\u308b\u306e\u3067\u63a2\u3059\u3002\u691c\u7d22\u3057\u305f\u307b\u3046\u304c\u65e9\u3044\uff1b<\/span><\/p>\n<p><span>\u300cDETAIL_P_HTML\u300d\u306e\u521d\u671f\u5024\u3067\u5165\u3063\u3066\u3044\u308b\u3001<br \/>\n\u300eURL_DIR . \u201cproducts\/detail.php?product_id=\u201d\u300f\u3000\u3092<br \/>\n\u300eURL_DIR . \u201cproducts\/detail\u201d\u300f\u3000\u306b\u66f8\u304d\u63db\u3048\u308b\u3002<\/span><\/p>\n<p><span><strong>\uff13\uff09\u30c6\u30f3\u30d7\u30ec\u5909\u66f4<\/strong><\/span><\/p>\n<blockquote><p><span>\/data\/Smarty\/templates\/default\/list.tpl<br \/>\n\/data\/Smarty\/templates\/default\/bloc\/best5.tpl<br \/>\n\/data\/Smarty\/templates\/default\/bloc\/category.tpl<br \/>\n\/data\/Smarty\/templates\/default\/mypage\/history.tpl <\/span><\/p><\/blockquote>\n<p><span>\u3092\u5909\u66f4\u3059\u308b\u3051\u308c\u3069\u3001\u7ba1\u7406\u753b\u9762\u304b\u3089\u5909\u66f4\u3067\u304d\u308b\u306e\u3067\u3001\u78ba\u8a8d\u3057\u306a\u304c\u3089\u3084\u308b\u3079\u3057\u3002<br \/>\n\u30ed\u30fc\u30ab\u30eb\u3067\u30d5\u30a1\u30a4\u30eb\u3092\u4fee\u6b63\u3057\u3066FTP\u3067\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308b\u5834\u5408\u306f\u3001\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u3066\u304b\u3089\u3001\u30c7\u30b6\u30a4\u30f3\u7ba1\u7406\u2192\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u8a2d\u5b9a\u306e\u753b\u9762\u3067\u3001\u300c\u3053\u306e\u5185\u5bb9\u3067\u767b\u9332\u3059\u308b\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u3001\u30c6\u30f3\u30d7\u30ec\u3092\u9069\u7528\u3055\u305b\u308b\u3053\u3068\u3002\uff08FTP\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u305f\u3060\u3051\u3067\u306f\u53cd\u6620\u3055\u308c\u306a\u3044\uff09<\/span><\/p>\n<p><span>\u8a72\u5f53\u3059\u308b\u300c\/products\/detail.php?product_id=\u300d\u306e\u90e8\u5206\u3092\u3001\u300cdetails\u300d\u306b\u5909\u3048\u3001\u305d\u306e\u5909\u6570\u306e\u5f8c\u308d\u306b\u300c.html\u300d\u3092\u633f\u5165\u3057\u3002DETAIL_P_HTML\u304c\u5165\u3063\u3066\u3044\u308b\u3068\u3053\u308d\u3082\u540c\u3058\u3088\u3046\u306b\u5909\u66f4\u3002\u3055\u3089\u306b\u3001\u300c\/products\/list.php?category_id=\u300d\u3082\u3002\u691c\u7d22\u3057\u306a\u304c\u3089\u826f\u304f\u898b\u3066\u5909\u66f4\u3059\u308b\u3053\u3068\u3002<\/span><\/p>\n<p><span>\u30c7\u30b6\u30a4\u30f3\u7ba1\u7406\u2192\u30da\u30fc\u30b8\u8a73\u7d30\u8a2d\u5b9a\u2192\u300c\u5546\u54c1\u4e00\u89a7\u30da\u30fc\u30b8\u300d\u3092\u9078\u629e\u3057\u3066\u30b3\u30fc\u30c9\u3092\u8868\u793a\u3055\u305b\u3001\u4fee\u6b63\u3002<br \/>\nDETAIL_P_HTML\u306e\u3042\u308b\u5834\u6240\u3092\u691c\u7d22\u3057\u3066\u3001\u305d\u306e\u5f8c\u308d\u306e\u5909\u6570\u306e\u5f8c\u306b\u3001\u300c.html\u300d\u3092\u8ffd\u52a0\u30023\u7b87\u6240\u3042\u308b\u3002\uff08ver.2.3rc1\u306e\u5834\u5408\u3001L97,L117,L130\uff09<\/span><\/p>\n<p><span>\u7d42\u308f\u3063\u305f\u3089\u3001\u300c\u5546\u54c1<\/span>\u8a73\u7d30\u30da\u30fc\u30b8\u300d\u3082\u540c\u69d8\u306b\u4fee\u6b63\u30024\u7b87\u6240\u3042\u308b\u3002\uff08\u540c\u3058\u304f\u3001L324,L330,L349,L359\uff09<\/p>\n<blockquote><p><span>&lt;a href=&#8221;&lt;!&#8211;{$smarty.const.DETAIL_P_HTML}&#8211;&gt;&lt;!&#8211;{$arrProducts[cnt].product_id}&#8211;&gt;<span style=\"color: #ff00ff;\">.html<\/span>&#8220;\u3000<em><strong>\u2190\u8ffd\u52a0\u3002<\/strong><\/em><\/span><\/p><\/blockquote>\n<p><span>\u300cMY\u30da\u30fc\u30b8\u300d\u306f\u306a\u305c\u304b\u7ba1\u7406\u753b\u9762\u304b\u3089\u5909\u66f4\u3067\u304d\u306a\u3044\u306e\u3067\u3001\u5f8c\u3067\u76f4\u63a5\u30d5\u30a1\u30a4\u30eb\u3092\u5909\u66f4\u3057\u3066FTP\u3067\u4e0a\u3052\u308b\u3002<\/span><\/p>\n<p><span>\/data\/Smarty\/templates\/default\/mypage\/history.php<br \/>\n\uff08ver.2.3rc1\u306e\u5834\u5408\u3001L53\uff09<\/span><\/p>\n<blockquote><p><span>&lt;td&gt;&lt;a href=&#8221;&lt;!&#8211;{$smarty.const.URL_DIR}&#8211;&gt;products\/detail.php?product_id=&lt;!&#8211;{$arrDisp.product_id[cnt]}&#8211;&gt;&#8221;&gt;<\/span><\/p>\n<p><span>\u3053\u308c\u3092\u2193\u2193\u2193\u3078\u3002<\/span><\/p>\n<p><span>&lt;td&gt;&lt;a href=&#8221;&lt;!&#8211;{$smarty.const.URL_DIR}&#8211;&gt;products\/detail&lt;!&#8211;{$arrDisp.product_id[cnt]}&#8211;&gt;.html&#8221;&gt;<\/span><\/p><\/blockquote>\n<p><span>\u6b21\u306b\u3001\u7ba1\u7406\u753b\u9762\u306e\u30d6\u30ed\u30c3\u30af\u7de8\u96c6\u3078\u3002\u300c\u30ab\u30c6\u30b4\u30ea\u300d\u30d6\u30ed\u30c3\u30af\u3092\u958b\u304f\u3002\uff08ver.2.3rc1\u306e\u5834\u5408\u3001L46\uff09<\/span><\/p>\n<p>\u6700\u5f8c\u306b\u3001\u300c\u30aa\u30b9\u30b9\u30e1\u5546\u54c1\u300d\u3082\u30024\u7b87\u6240\u4fee\u6b63\u3002\uff08ver.2.3rc1\u306e\u5834\u5408\u3001L37,L42,L68,73\uff09<\/p>\n<blockquote><p>&lt;a href=&#8221;&lt;!&#8211;{$smarty.const.URL_DIR}&#8211;&gt;products\/detail.php?product_id=&lt;!&#8211;{$arrBestProducts[cnt].product_id}&#8211;&gt;&#8221;&gt;<\/p>\n<p><span><span>\u3053\u308c\u3092\u2193\u2193\u2193\u3078\u3002<\/span><\/span><\/p>\n<p><span><span>&lt;a href=&#8221;&lt;!&#8211;{$smarty.const.URL_DIR}&#8211;&gt;products\/detail&lt;!&#8211;{$arrBestProducts[cnt].product_id}&#8211;&gt;.html&#8221;&gt;<\/span><\/span><\/p><\/blockquote>\n<p><span><span>\u4ee5\u4e0a\u3002\u305d\u306e\u4ed6\u306b\u540c\u69d8\u306e\u4fee\u6b63\u304c\u5fc5\u8981\u306a\u3068\u3053\u308d\u304c\u3042\u308c\u3070\uff08\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u306a\u3069\u3067\u767a\u751f\u3059\u308b\u53ef\u80fd\u6027\u3082\u3042\u308b\u3057\u3002\uff09\u540c\u3058\u3088\u3046\u306b\u4fee\u6b63\u3059\u308b\u3002<\/span><\/span><\/p>\n<blockquote><p><span>&lt;a href=&#8221;&lt;!&#8211;{$smarty.const.URL_DIR}&#8211;&gt;products\/list.php?category_id=&lt;!&#8211;{$arrTree[cnt].category_id}&#8211;&gt;&#8221;<\/span><\/p>\n<p><span><span>\u3053\u308c\u3092\u2193\u2193\u2193\u3078\u3002<\/span><\/span><\/p>\n<div><span>&lt;a href=&#8221;&lt;!&#8211;{$smarty.const.URL_DIR}&#8211;&gt;products\/list&lt;!&#8211;{$arrTree[cnt].category_id}&#8211;&gt;.html&#8221;<\/span><\/div>\n<div><span>\u00a0<\/span><\/div>\n<\/blockquote>\n<p>\u3055\u3089\u306b\u3002<\/p>\n<p><strong>\uff14\uff09GOOGLE\u30b5\u30a4\u30c8\u30de\u30c3\u30d7\u7528\u306eXML\u30b5\u30a4\u30c8\u30de\u30c3\u30d7\u3082\u9759\u7684HTML\u3067\u51fa\u529b\u3057\u305f\u3044\u3002<\/strong><\/p>\n<p>GOOGLE\u30b5\u30a4\u30c8\u30de\u30c3\u30d7\u7528\u306eXML\u30b5\u30a4\u30c8\u30de\u30c3\u30d7\u4f5c\u6210\u6a5f\u80fd\u306b\u3064\u3044\u3066\u3082\u3001\u540c\u3058\u3088\u3046\u306b\u3001\u300c.html\u300d\u306e\u62e1\u5f35\u5b50\u3067\u8868\u793a\u3055\u305b\u305f\u3044\u3002<\/p>\n<p>\/data\/class\/pages\/LC_Page_Sitemap.php<\/p>\n<p>\u306e240\u884c\u76ee\u3002(Ver.2.3RC1\u306e\u5834\u5408\u3002\uff09<\/p>\n<blockquote><p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \/\/ :TODO: \u30ab\u30c6\u30b4\u30ea\u306e\u6700\u7d42\u66f4\u65b0\u65e5\u3092\u53d6\u5f97\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 $page = array(&#8220;url&#8221; =&gt; SITE_URL . sprintf(&#8220;%sproducts\/list.php?category_id=%d&#8221;, $mobile, $result[$i][&#8216;category_id&#8217;]));\u3000\u2190\u3053\u308c\u3092\u5909\u66f4\u3002<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 $arrRet[$i] = $page;<\/p><\/blockquote>\n<p>\u2193\u2193\u2193\u3053\u306e\u3088\u3046\u306b\u5909\u66f4\u3002<\/p>\n<blockquote><p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \/\/ :TODO: \u30ab\u30c6\u30b4\u30ea\u306e\u6700\u7d42\u66f4\u65b0\u65e5\u3092\u53d6\u5f97\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 $page = array(&#8220;url&#8221; =&gt; SITE_URL . sprintf(&#8220;<span style=\"color: #ff00ff;\">%sproducts\/list%d.html<\/span>&#8220;, $mobile, $result[$i][&#8216;category_id&#8217;]));<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 $arrRet[$i] = $page;<\/p><\/blockquote>\n<p>264\u884c\u76ee\u3082\u3002<\/p>\n<blockquote><p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 for ($i = 0; $i &lt; count($result); $i++) {<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 $page = array(&#8220;url&#8221; =&gt; SITE_URL. sprintf(&#8220;%sproducts\/detail.php?product_id=%d&#8221;, $mobile, $result[$i][&#8216;product_id&#8217;]),\u3000\u2190\u3053\u308c\u3092\u5909\u66f4\u3002<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#8220;update_date&#8221; =&gt; $result[$i][&#8216;update_date&#8217;]);<\/p><\/blockquote>\n<p>\u2193\u2193\u2193\u3053\u306e\u3088\u3046\u306b\u5909\u66f4\u3002<\/p>\n<blockquote><p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 for ($i = 0; $i &lt; count($result); $i++) {<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 $page = array(&#8220;url&#8221; =&gt; SITE_URL. sprintf(&#8220;<span style=\"color: #ff00ff;\">%sproducts\/detail%d.html<\/span>&#8220;, $mobile, $result[$i][&#8216;product_id&#8217;]),<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#8220;update_date&#8221; =&gt; $result[$i][&#8216;update_date&#8217;]);<\/p><\/blockquote>\n<p>\u3053\u308c\u3067\u3001GOOGLE\u7528\u306eXML\u30b5\u30a4\u30c8\u30de\u30c3\u30d7\u3082\u30ea\u30f3\u30af\u306f\u5168\u3066\u9759\u7684URL\u3067\u66f8\u304d\u51fa\u3055\u308c\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\uff33\uff25\uff2f\u306b\u6709\u52b9\u306a\u9759\u7684HTML\u8868\u793a\u306bPHP\u30da\u30fc\u30b8\u306eURL\u3092\u5909\u63db\u3059\u308b\u3002 \uff11\uff09\/products\/\u4ee5\u4e0b\u306b\u300c.htaccess\u300d\u30d5\u30a1\u30a4\u30eb\u3092\u8a2d\u5b9a\u3059\u308b\u3002 mod_rerwite\u3092\u5229\u7528\u3059\u308b\u306e\u3067\u3001\u300c.htaccess\u300d\u30d5\u30a1\u30a4\u30eb\u306b\u3001\u4e0b\u8a18\u306e\u3088 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[183],"tags":[147,79,90,163,51],"_links":{"self":[{"href":"https:\/\/bton.papalabs.net\/index.php?rest_route=\/wp\/v2\/posts\/325"}],"collection":[{"href":"https:\/\/bton.papalabs.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bton.papalabs.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bton.papalabs.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bton.papalabs.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=325"}],"version-history":[{"count":0,"href":"https:\/\/bton.papalabs.net\/index.php?rest_route=\/wp\/v2\/posts\/325\/revisions"}],"wp:attachment":[{"href":"https:\/\/bton.papalabs.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=325"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bton.papalabs.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=325"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bton.papalabs.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=325"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}