I have seen this on many sites where after searching via a search form, the search result will be part of the friendly url ie. <form action="/find.php" method="get"> the url would be /find.php?search=dog However the friendly url would be /find/dog.html may be this can be achived through JavaScript or PHP with mod _rewrite i dont know... Any help would be great ?
Yes i am using that Rewrite all ready, thanks and if i had a link in my page /find/dog.html that will work great. However if the search form is on the page /find/dog.html after clicking the form button searching for "cat" the url will be /find/dog.html?search=cat There must be a way to change the url to /find/cat.html But i dont know what it is..!
You could do. <form action="" method="get" onsubmit="window.location='/find/'+ this.fieldname.value +'.html'; return false;"> Code (markup): (Replacing "fieldname" with the actual field name.) Note that this won't work if Javascript is disabled on the client's side.