Unstoppable Domains

Need Help to Rewrite Google CSE URL

Spaceship Spaceship
Watch
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:

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
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
.US domains.US domains
Have you tried asking your host?
 
0
•••
Asking about what ? ;)

Thanks for looking
 
0
•••

We're social

Unstoppable Domains
Domain Recover
DomainEasy — Payment Flexibility
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back