url rewrite problem

Discussion in 'Site & Server Administration' started by SonnyCooL, Nov 4, 2009.

  1. #1
    my site url :
    http://condo.com.my/search.php?txtk...tToPrice=&txtPropertyType=&txtRoom=&txtPage=2

    after rewrite it suppose to be like this :
    http://condo.com.my/search/txtkey//...ToPrice//txtPropertyType//txtRoom//txtPage/2/

    i try to put this code in new .htaccess but fail, anyone can help ?
    my rewrite code :
    Options +FollowSymLinks
    RewriteEngine on
    RewriteRule search/txtSaleRent/(.*)/txtkey/(.*)/txtPropertyType/(.*)/btnSearch/(.*)/txtSort/(.*)/txtSortType/(.*)/ search.php?txtSaleRent=For+Sale&txtkey=$2&txtPrope rtyType=$3&btnSearch=$4&txtSort=$5&txtSortType=$6
    RewriteRule search/txtSaleRent/(.*)/txtkey/(.*)/txtPropertyType/(.*)/btnSearch/(.*)/txtSort/(.*)/txtSortType/(.*) search.php?txtSaleRent=For+Sale&txtkey=$2&txtPrope rtyType=$3&btnSearch=$4&txtSort=$5&txtSortType=$6
    Code (markup):
    second code i try :
    Options +FollowSymLinks
    RewriteEngine on
    
    RewriteRule /txtkey/(.*)/txtFromPrice/(.*)/txtState/(.*)/txtToPrice/(.*)/txtPropertyType/(.*)/txtRoom/(.*)/txtPage/(.*) search.php?txtkey=$1&txtFromPrice=$2&txtState=$3&txtToPrice=$4&txtPropertyType=$5&txtRoom=$6&txtPage=$7
    Code (markup):
     
    SonnyCooL, Nov 4, 2009 IP