- Impact
- 71
Hello,
If you know google custom search, - Google Custom Search Engine - Site search and more - , need some help on redirect code
Currently, if I use the "GET" method in the search form, all the hidden variables and junk gets put into the URL. I want to be able to link to the result pages. So, instead of this URL:
I would like this one:
Trying .htaccess
But still didnt work. I am sure mod rewrite is working in my apache since I have another rewrite is working to my another sub folder also.
Need help. Thanks
If you know google custom search, - Google Custom Search Engine - Site search and more - , need some help on redirect code
Currently, if I use the "GET" method in the search form, all the hidden variables and junk gets put into the URL. I want to be able to link to the result pages. So, instead of this URL:
Code:
http://www.domain.com/blog/index.php?cx=partner-pub-xxxx&cof-FORIDxx&q=search+term&sa=Submit
I would like this one:
Code:
http://www.domain.com/blog/search-term/
Trying .htaccess
Code:
RewriteEngine On
RewriteRule blog/search/(.*)$ /blog/?q=$1&cx=partner-pub-xxxx&cof-FORIDxx&sa=Submit
Code:
RewriteEngine On
RewriteRule blog/search/(.*)$ /blog/index.php?q=$1&cx=partner-pub-xxxx&cof-FORIDxx&sa=Submit
But still didnt work. I am sure mod rewrite is working in my apache since I have another rewrite is working to my another sub folder also.
Need help. Thanks





