htaccess每次带我回到索引

时间:2012-07-30 20:44:39

标签: .htaccess

我已经设置了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=$2 [L,QSA]

我的网址是:

**getting data from Index.php**
http://myweb.com/en/?pno=2 
http://myweb.com/en/?pno=3
http://myweb.com/en/?pno=4 ect..

**getting data from search.php**
http://myweb.com/en/search/?search_name=white&mydropdown=All+Categories
http://myweb.com/en/search/?search_name=pink&mydropdown=All+Categories
http://myweb.com/en/search/?search_name=blue&mydropdown=All+Categories ect....

0 个答案:

没有答案