我有以下网址(nornal和用户友好)
普通网址:
http://myweb.com/en/search/search.php?search_name=white&mydropdown=All+Categories
{and with page numbers}
http://myweb.com/en/search/search.php?search_name=white&mydropdown=All+Categories&pno=3
友好的网址:
http://myweb.com/en/search/?search_name=white&mydropdown=All+Categories
{and with page numbers}
http://myweb.com/en/search/?search_name=white&mydropdown=All+Categories&pno=3
我有跟随htaccess,但它不起作用......也许它没有正确编码。它将我带回en / search / search.php
的en / index.php intead的.htaccess
RewriteEngine On
RewriteRule ^en/([a-zA-Z0-9-]+)/?$ en/index.php [L,QSA]
RewriteRule ^en/search/([a-zA-Z0-9-]+)/?$ /en/search/search.php?search_name=$1&mydropdown=$1 [L,QSA]
谢谢帮帮我! 问候
答案 0 :(得分:1)
为什么重定向网址中有两次$ 1?
我有一种感觉,第一条规则也会匹配“搜索”。所以它将使用它。尝试撤消规则顺序。