商品一覧ページをhtmlで静的生成:EC CUBEのSEO化
mod_rewrite(.htaccess)を用いて動的生成を静的化した上で以下の箇所を変更。
商品一覧ページ
◆対象URL:http://URL/products/list.php
<!–★商品名★–>
【変更前】
<h2><a href="<!–{$smarty.const.DETAIL_P_HTML}–><!–{$arrProducts[cnt].product_id}–>"><!–{$arrProducts[cnt].name|escape}–></a></h2>
↓
【変更後】
<h2><a href="detail<!–{$arrProducts[cnt].product_id}–>.html"><!–{$arrProducts[cnt].name|escape}–></a></h2>
【注意】mod_rewrite(.htaccess)を用いていないと上記タグを変更しても意味がありません。