我有以下网址(正常且用户友好)
普通网址:
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/index.php 而不是 en/search/search.php
.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]
谢谢帮帮我!问候