Okay I am facing a lot of problems while writing clean URLs using mod_rewrite. Say I have a link like
http://www.example.com/search.php?q=variable
I want to convert it into a clean URL like
http://www.example.com/variable
which I have done so far using the following rewrite rule
RewriteRule ^/?([a-zA-Z_]+)$ search.php?q=$1 [L].
Now when I enter this clean URL directly into my browser it works fine but when I open up my website and inquire anything through search box of my website it still shows
http://www.example.com/search.php?q=variable
I just want to how to fix this issue as when I enter clean URL it works fine but upon searching from search box instead of directly writing the URL in browser it still shows the url with query string. THANKS ALOT any help will be appriciated