I recently installed Google Site Search on a WordPress site. When I did, I kept getting an error stating that I did not have permissions to access that page – Forbidden… at any rate here is the fix.
I logged into your GSS account and tried to perform a search from the “Preview” section of your GSS control panel and it did gave me the error message “Forbidden”.
On further investigating it appears that your GSS account has the mode set to “BOOST” in the context under “Advanced” tab. The mode BOOST is used in CSE were the entire web has to be searched. But this is not possible with GSS, so you need to change that
option before upgrading as mentioned in this document.
http://www.google.com/support/customsearch/bin/answer.py?answer=72323&topic=11504
So to fix this issue, you need to change the mode from BOOST to FILTER in the context XML.
The context file shows the following label:
<Label name=”_cse_6nkyxsvqqeq” mode=”BOOST” />
change it to
<Label name=”_cse_6nkyxsvqqeq” mode=”FILTER” />
So you need to do the following:
1. On your control panel goto Advanced > Context section.
2. Under “Upload context” click the “Download in XML format”.
3. Now in that file find this line:
<Label name=”_cse_6nkyxsvqqeq” mode=”BOOST” />
replace it with
<Label name=”_cse_6nkyxsvqqeq” mode=”FILTER” />
4. Now upload the context XML file back with the changes.
{ 0 comments }
