我試圖讓搜索查詢搜索引擎優化。我有一個形式是這樣的:
<form action="index.php?<?=$_GET['search-input01']?>'" method="get">
<p class="nom t-center">
<label for="search-input01">All:</label>
<input type="text" size="75" name="q" id="search-input01" />
<input type="image" src="design/search-button.gif" class="search-submit" />
</p>
</form>
當u在地址欄中搜索做/index.php?q=SEARCHTERMHERE&x=0&y=0
。我想這樣做:/search-SEARCHTERMHERE
怎麼辦?
感謝您的回答。你的代碼成功重定向但不工作。 mozilla說錯誤的重定向(從來沒有加載頁上ie)btw我改變了我的文章。忘記「www」這是搜索詞。我想/index.php?q=SEARCHTERMHERE&x=0&y=0到/ search-SEARCHTERMHERE – 2010-01-10 13:05:08
它沒有工作,但我在php腳本$ _get中將「q」更改爲「search-input01」。它的工作原理如同search-TERM?x = 0&y = 0。並且頁面現在不工作。 RewriteRule search - (。*) - (。*)$ /index.php?type=$2&q=$1 - (。*) - (。*)$ /index.php?page=$2&q=$1 RewriteRule搜索 - (。*) - (。*) - (。*)$ /index.php?page=$3&type=$2&q=$1還有其他規則。如果你有MSN加我[email protected] – 2010-01-10 14:26:35