Need: Programmer To Rewrite Google CSE URL

Discussion in 'Programming' started by meamrussian, Jul 26, 2009.

  1. #1
    Hello,

    As you know, SEO-friendly URLs are great. Having /search/search-term/ is better than search.php?q=search+term. Usually you use Apache ModRewrite to do this. I need the same thing done, only to make it work with google custom search, found on adsense or cse - http://www.google.com/coop/cse/. If you're familiar with it, then you know how it works. It lets you customize your own Google search for your website.

    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 (the results are shown as an iFrame on my site). So, instead of this URL:
    http://www.domain.com/search.php?cx=partner-pub-xxxx&cof-FORIDxx&q=search+term&sa=Submit#3432
    Code (markup):
    I want this one:
    http://www.domain.com/search/search-term/
    Code (markup):
    That's all I want done. However, I want working proof that the script works beforehand, since I tried doing something with Google CSE before and for some reason it didn't work (I'm not a pro though). If you code this, make sure you're actually doing it with Google CSE (you can get the free code on Google).

    I'm willing to pay up to $40 for such a script.

    Thanks. Let me know if you have any questions!
     
    meamrussian, Jul 26, 2009 IP
  2. SHOwnsYou

    SHOwnsYou Peon

    Messages:
    209
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #2
    Have you tried adding
    
    RewriteEngine on
    RewriteRule ^search/([^/\.]+)/?$ /search.php?cx=partner-pub-xxxx&cof-FORIDxx&q=$1&sa=Submit#3432 [L]
    
    Code (markup):
    To your .htaccess?
     
    SHOwnsYou, Jul 26, 2009 IP
  3. meamrussian

    meamrussian Active Member

    Messages:
    780
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    58
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #3
    Yessir, I have tried something like that. Didn't work for some reason.

    I currently have someone working on this. If his work doesn't pull through, I'll get someone else to try.

    Thanks.
     
    meamrussian, Jul 27, 2009 IP