So I'm working on a self project of mine and it is related to job searching. I want the urls to appear as: site.com/search/developer where developer is the search keyword obviously. Now the thing is that as normally when I click search (the submit button does it's job) and the url appears as: site.com/search.php?kword=developer and Im sure htaccess rewrite cannot change the way php forms behave and how they format the url.
Now I have an idea to use javascript so that when user types a keyword, i take that and redirect the page via js to site.com/search/[keyword] but I'm UNSURE if this is a good idea (considering disabled javascript cases).
Is there any decent/recommended way to achieve what I'm trying to achieve, I know there is because I have seen some big websites do it only I dont know what's the best way to do it.
Thank you in advance.