0
我有以下代码:形式的搜索到的网址
<form action="search.php" method="get" name="searchprod" id="prodsearch">
<table border="0" cellpadding="0" cellspacing="0">
<tbody><tr>
<td><input name="q" type="text" id="searchbox" value="Search" onfocus="this.value=''; this.style.color='#333333';" /></td>
<td><input type="submit" value="Search" class="searchButton" /></td>
</tr>
</tbody></table>
</form>
当用户搜索我怎样才能使它所以它看起来像这样“DVD-player.html”而不是” search.php中Q = DVD +播放器“
我有.htaccess的地方,但不知道如何在窗体内做到这一点。
你是说你想让搜索结果页面或产品页面成为'dvd-player.html'吗?在SEO正切,我会鼓励你不要索引你的搜索结果页面,因为它们将与你的产品页面竞争,并可能被视为*重复内容*。因此,您的搜索结果页面的网址无关紧要。 – 2011-12-23 16:53:29