我试图让搜索查询搜索引擎优化。我有一个形式是这样的:
<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