Index: branches/version-2_4-dev/data/class/pages/LC_Page_Sitemap.php
===================================================================
--- branches/version-2_4-dev/data/class/pages/LC_Page_Sitemap.php	(revision 16582)
+++ branches/version-2_4-dev/data/class/pages/LC_Page_Sitemap.php	(revision 18573)
@@ -255,14 +255,16 @@
         $result = $conn->getAll($sql);
 
-        $mobile = "";
         if ($isMobile) {
-            $mobile = "mobile/";
+            $detail_p_html = MOBILE_DETAIL_P_HTML;
+        } else {
+            $detail_p_html = DETAIL_P_HTML;
         }
 
         $arrRet = array();
-        for ($i = 0; $i < count($result); $i++) {
-            $page = array("url" => SITE_URL. sprintf("%sproducts/detail.php?product_id=%d", $mobile, $result[$i]['product_id']),
-                          "update_date" => $result[$i]['update_date']);
-            $arrRet[$i] = $page;
+        foreach ($result as $row) {
+            $page["update_date"] = $row['update_date'];
+            $page["url"] = SITE_URL . substr($detail_p_html, strlen(URL_DIR)) . $row['product_id'];
+
+            $arrRet[] = $page;
         }
         return $arrRet;
Index: branches/version-2_4-dev/data/Smarty/templates/default/mobile/frontparts/bloc/best5.tpl
===================================================================
--- branches/version-2_4-dev/data/Smarty/templates/default/mobile/frontparts/bloc/best5.tpl	(revision 18408)
+++ branches/version-2_4-dev/data/Smarty/templates/default/mobile/frontparts/bloc/best5.tpl	(revision 18573)
@@ -27,5 +27,5 @@
 
 <!-- ▼オススメコメント ここから -->
-<a href="<!--{$smarty.const.MOBILE_DETAIL_P_HTML}--><!--{$arrProduct.product_id}-->">
+<a href="<!--{$smarty.const.MOBILE_DETAIL_P_HTML}--><!--{$arrProduct.product_id|escape:url}-->">
 <!--{$arrProduct.comment|escape|nl2br}--></a>
 <!-- ▲オススメコメント ここまで -->
Index: branches/version-2_4-dev/data/Smarty/templates/default/mobile/products/list.tpl
===================================================================
--- branches/version-2_4-dev/data/Smarty/templates/default/mobile/products/list.tpl	(revision 16582)
+++ branches/version-2_4-dev/data/Smarty/templates/default/mobile/products/list.tpl	(revision 18573)
@@ -56,7 +56,7 @@
 <div align="right">
 <!--{if $i+1<9}-->
-<a href="<!--{$smarty.const.MOBILE_DETAIL_P_HTML}--><!--{$arrProduct.product_id}-->" accesskey="<!--{$i+1}-->">商品詳細へ→</a>
+<a href="<!--{$smarty.const.MOBILE_DETAIL_P_HTML}--><!--{$arrProduct.product_id|escape:url}-->" accesskey="<!--{$i+1}-->">商品詳細へ→</a>
 <!--{else}-->
-<a href="<!--{$smarty.const.MOBILE_DETAIL_P_HTML}--><!--{$arrProduct.product_id}-->">商品詳細へ→</a>
+<a href="<!--{$smarty.const.MOBILE_DETAIL_P_HTML}--><!--{$arrProduct.product_id|escape:url}-->">商品詳細へ→</a>
 <!--{/if}-->
 </div>
Index: branches/version-2_4-dev/data/Smarty/templates/default/mobile/mypage/history_detail.tpl
===================================================================
--- branches/version-2_4-dev/data/Smarty/templates/default/mobile/mypage/history_detail.tpl	(revision 18472)
+++ branches/version-2_4-dev/data/Smarty/templates/default/mobile/mypage/history_detail.tpl	(revision 18573)
@@ -50,5 +50,5 @@
 <!--{section name=cnt loop=$arrDisp.quantity}-->
 <!--{$arrDisp.product_name[cnt]|escape}--><br>
-<a href="<!--{$smarty.const.MOBILE_URL_DIR}-->products/detail.php?product_id=<!--{$arrDisp.product_id[cnt]}-->">商品購入詳細→</a><br>
+<a href="<!--{$smarty.const.MOBILE_DETAIL_P_HTML}--><!--{$arrDisp.product_id[cnt]|escape:url}-->">商品詳細→</a><br>
 <!--{/section}-->
 <br>
Index: branches/version-2_4-dev/data/Smarty/templates/default/mobile/cart/index.tpl
===================================================================
--- branches/version-2_4-dev/data/Smarty/templates/default/mobile/cart/index.tpl	(revision 17728)
+++ branches/version-2_4-dev/data/Smarty/templates/default/mobile/cart/index.tpl	(revision 18573)
@@ -58,5 +58,5 @@
 		<!--{* 合計 *}-->
 		小計:<!--{$arrProductsClass[cnt].total_pretax|number_format}-->円<br>
-		<div align="right"><a href="<!--{$smarty.const.MOBILE_DETAIL_P_HTML}--><!--{$arrProductsClass[cnt].product_id}-->">商品購入詳細へ→</a></div>
+		<div align="right"><a href="<!--{$smarty.const.MOBILE_DETAIL_P_HTML}--><!--{$arrProductsClass[cnt].product_id|escape:url}-->">商品詳細へ→</a></div>
 		<HR>
 	<!--{/section}-->
Index: branches/version-2_4-dev/data/Smarty/templates/default/list.tpl
===================================================================
--- branches/version-2_4-dev/data/Smarty/templates/default/list.tpl	(revision 18408)
+++ branches/version-2_4-dev/data/Smarty/templates/default/list.tpl	(revision 18573)
@@ -94,5 +94,5 @@
       <div class="listphoto">
         <!--★画像★-->
-        <a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrProducts[cnt].product_id}-->" class="over"><!--商品写真--><img src="<!--{$smarty.const.IMAGE_SAVE_URL|sfTrimURL}-->/<!--{$arrProducts[cnt].main_list_image}-->" alt="<!--{$arrProducts[cnt].name|escape}-->" class="picture" /></a>
+        <a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrProducts[cnt].product_id|escape:url}-->" class="over"><!--商品写真--><img src="<!--{$smarty.const.IMAGE_SAVE_URL|sfTrimURL}-->/<!--{$arrProducts[cnt].main_list_image}-->" alt="<!--{$arrProducts[cnt].name|escape}-->" class="picture" /></a>
      </div>
      <div class="listrightblock">
@@ -114,5 +114,5 @@
        <!--★商品名★-->
        <h3>
-         <a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrProducts[cnt].product_id}-->"><!--{$arrProducts[cnt].name|escape}--></a>
+         <a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrProducts[cnt].product_id|escape:url}-->"><!--{$arrProducts[cnt].name|escape}--></a>
        </h3>
        <p class="listcomment"><!--★コメント★--><!--{$arrProducts[cnt].main_list_comment|escape|nl2br}--></p>
@@ -127,5 +127,5 @@
          <span class="btnbox"><!--★詳細ボタン★-->
          <!--{assign var=name value="detail`$smarty.section.cnt.iteration`"}-->
-           <a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrProducts[cnt].product_id}-->" onmouseover="chgImg('<!--{$TPL_DIR}-->img/products/b_detail_on.gif','<!--{$name}-->');" onmouseout="chgImg('<!--{$TPL_DIR}-->img/products/b_detail.gif','<!--{$name}-->');">
+           <a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrProducts[cnt].product_id|escape:url}-->" onmouseover="chgImg('<!--{$TPL_DIR}-->img/products/b_detail_on.gif','<!--{$name}-->');" onmouseout="chgImg('<!--{$TPL_DIR}-->img/products/b_detail.gif','<!--{$name}-->');">
             <img src="<!--{$TPL_DIR}-->img/products/b_detail.gif" width="115" height="25" alt="詳しくはこちら" name="<!--{$name}-->" id="<!--{$name}-->" /></a>
          </span>
Index: branches/version-2_4-dev/data/Smarty/templates/default/bloc/best5.tpl
===================================================================
--- branches/version-2_4-dev/data/Smarty/templates/default/bloc/best5.tpl	(revision 18408)
+++ branches/version-2_4-dev/data/Smarty/templates/default/bloc/best5.tpl	(revision 18573)
@@ -35,8 +35,8 @@
     <!--{/if}-->
 
-      <a href="<!--{$smarty.const.URL_DIR}-->products/detail.php?product_id=<!--{$arrBestProducts[cnt].product_id}-->">
+      <a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrBestProducts[cnt].product_id|escape:url}-->">
         <img src="<!--{$smarty.const.SITE_URL}-->resize_image.php?image=<!--{$image_path|sfRmDupSlash}-->&amp;width=48&amp;height=48" alt="<!--{$arrBestProducts[cnt].name|escape}-->" /></a>
       <h3>
-        <a href="<!--{$smarty.const.URL_DIR}-->products/detail.php?product_id=<!--{$arrBestProducts[cnt].product_id}-->"><!--{$arrBestProducts[cnt].name|escape}--></a>
+        <a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrBestProducts[cnt].product_id|escape:url}-->"><!--{$arrBestProducts[cnt].name|escape}--></a>
       </h3>
 
@@ -64,8 +64,8 @@
         <!--{/if}-->
 
-      <a href="<!--{$smarty.const.URL_DIR}-->products/detail.php?product_id=<!--{$arrBestProducts[$cnt2].product_id}-->">
+      <a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrBestProducts[$cnt2].product_id|escape:url}-->">
         <img src="<!--{$smarty.const.SITE_URL}-->resize_image.php?image=<!--{$image_path|sfRmDupSlash}-->&amp;width=48&amp;height=48" alt="<!--{$arrBestProducts[$cnt2].name|escape}-->" /></a>
       <h3>
-      <a href="<!--{$smarty.const.URL_DIR}-->products/detail.php?product_id=<!--{$arrBestProducts[$cnt2].product_id}-->"><!--{$arrBestProducts[$cnt2].name|escape}--></a>
+      <a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrBestProducts[$cnt2].product_id|escape:url}-->"><!--{$arrBestProducts[$cnt2].name|escape}--></a>
       </h3>
 
Index: branches/version-2_4-dev/data/Smarty/templates/default/mypage/favorite.tpl
===================================================================
--- branches/version-2_4-dev/data/Smarty/templates/default/mypage/favorite.tpl	(revision 17983)
+++ branches/version-2_4-dev/data/Smarty/templates/default/mypage/favorite.tpl	(revision 18573)
@@ -64,6 +64,6 @@
       <tr>
        <td><a href="javascript:fnModeSubmit('delete_favorite','product_id','<!--{$product_id}-->');">削除</a></td>
-       <td><a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$product_id}-->"><img src="<!--{$smarty.const.URL_DIR}-->resize_image.php?image=<!--{$image_path|sfRmDupSlash}-->&width=65&height=65"></a></td>
-       <td><a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$product_id}-->"><!--{$arrFavorite[cnt].name}--></a></td>
+       <td><a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$product_id|escape:url}-->"><img src="<!--{$smarty.const.URL_DIR}-->resize_image.php?image=<!--{$image_path|sfRmDupSlash}-->&width=65&height=65"></a></td>
+       <td><a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$product_id|escape:url}-->"><!--{$arrFavorite[cnt].name}--></a></td>
        <td class="right sale_price">
         <span class="price">
Index: branches/version-2_4-dev/data/Smarty/templates/default/mypage/history.tpl
===================================================================
--- branches/version-2_4-dev/data/Smarty/templates/default/mypage/history.tpl	(revision 18472)
+++ branches/version-2_4-dev/data/Smarty/templates/default/mypage/history.tpl	(revision 18573)
@@ -51,5 +51,5 @@
       <tr>
         <td><!--{$arrDisp.product_code[cnt]|escape}--></td>
-        <td><a href="<!--{$smarty.const.URL_DIR}-->products/detail.php?product_id=<!--{$arrDisp.product_id[cnt]}-->"><!--{$arrDisp.product_name[cnt]|escape}--></a></td>
+        <td><a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrDisp.product_id[cnt]|escape:url}-->"><!--{$arrDisp.product_name[cnt]|escape}--></a></td>
         <!--{assign var=price value=`$arrDisp.price[cnt]`}-->
         <!--{assign var=quantity value=`$arrDisp.quantity[cnt]`}-->
Index: branches/version-2_4-dev/data/Smarty/templates/default/detail.tpl
===================================================================
--- branches/version-2_4-dev/data/Smarty/templates/default/detail.tpl	(revision 18493)
+++ branches/version-2_4-dev/data/Smarty/templates/default/detail.tpl	(revision 18573)
@@ -325,10 +325,10 @@
         <!--{/if}-->
 
-        <a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrRecommend[cnt].product_id}-->">
+        <a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrRecommend[cnt].product_id|escape:url}-->">
           <img src="<!--{$smarty.const.SITE_URL}-->resize_image.php?image=<!--{$image_path|sfRmDupSlash}-->&amp;width=65&amp;height=65" alt="<!--{$arrRecommend[cnt].name|escape}-->" /></a>
 
         <!--{assign var=price02_min value=`$arrRecommend[cnt].price02_min`}-->
         <!--{assign var=price02_max value=`$arrRecommend[cnt].price02_max`}-->
-        <h3><a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrRecommend[cnt].product_id}-->"><!--{$arrRecommend[cnt].name|escape}--></a></h3>
+        <h3><a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrRecommend[cnt].product_id|escape:url}-->"><!--{$arrRecommend[cnt].name|escape}--></a></h3>
 
         <p>価格<span class="mini">(税込)</span>：<span class="price">
@@ -354,9 +354,9 @@
           <!--{assign var=image_path value="`$smarty.const.NO_IMAGE_DIR`"}-->
         <!--{/if}-->
-        <a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrRecommend[cnt].product_id}-->">
+        <a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrRecommend[cnt].product_id|escape:url}-->">
           <img src="<!--{$smarty.const.SITE_URL}-->resize_image.php?image=<!--{$image_path|sfRmDupSlash}-->&amp;width=65&amp;height=65" alt="<!--{$arrRecommend[cnt].name|escape}-->" /></a>
         <!--{assign var=price02_min value=`$arrRecommend[cnt].price02_min`}-->
         <!--{assign var=price02_max value=`$arrRecommend[cnt].price02_max`}-->
-        <h3><a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrRecommend[cnt].product_id}-->"><!--{$arrRecommend[cnt].name|escape}--></a></h3>
+        <h3><a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrRecommend[cnt].product_id|escape:url}-->"><!--{$arrRecommend[cnt].name|escape}--></a></h3>
 
         <p>価格<span class="mini">(税込)</span>：<span class="price">
