Forum Moderators: phranque

Message Too Old, No Replies

help with .htaccess code

.htaccess rewrite

         

bluetoothache

9:32 pm on Sep 25, 2006 (gmt 0)

10+ Year Member



hi,

can anybody help me with the .htaccess code to turn the URL structure from

http://example.com/search.php?q=KEYWORD&page=PAGENUMBER&minPrice=&maxPrice=&sort=RATING

to

http://example.com/search/RATING-PAGENUMBER-KEYWORD

or

http://example.com/search/KEYWORD/PAGENUMBER-RATING

i have an existing .htaccess code for

http://example.com/search.php?q=KEYWORD&page=PAGENUMBER&minPrice=&maxPrice=&sort=RATING

http://example.com/search/KEYWORD that might complicate things.

thank you in advance.

jdMorgan

1:07 am on Sep 26, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



See Changing Dynamic URLs to Static URLs [webmasterworld.com] (and several other threads) in our Apache forum library [webmasterworld.com] for a good start.

Jim