tags:

views:

16

answers:

1

How do i convert this URL

http://engine.searchr.us/web-search.phtml?search=SEARCHED+TEXT

to

http://engine.searchr.us/web-search/search/SEARCHED-TEXT.html

Is it possible to this using .htaccess and what should i code in the .htaccess for doing this ?

and i should place the .htaccess in the engine folder right ?

Thanking You, 5416339

A: 

I don't think this is possible, with just the standard Apache modules. mod_rewrite might be closest, but it can't process the QUERY_STRING. So you'll have to implement some kind of server-side code (CGI, PHP, mod_python) to implement the redirect. I'd personally use a Python-implemented CGI script.

Martin v. Löwis