We have 2 sites where we are implementing Google Search. Both sites are 7.4.2 and use portal groups. The one was a fresh install of DNN 7.4.2 (recently developed) and the display of the search results on a results page and is working well. The other has been upgraded the last version before the upgrade was 7.3.3.
On the site that is not working the URL that should be "?q=Whatever" is being rewritten to "/q/Whatever" while going to the result page.
We have the following web config set for both sites
<friendlyUrl defaultProvider="DNNFriendlyUrl">
<providers>
<clear />
<add name="DNNFriendlyUrl" type="DotNetNuke.Services.Url.FriendlyUrl.DNNFriendlyUrlProvider, DotNetNuke.HttpModules" includePageName="true" regexMatch="[^a-zA-Z0-9 _-]" urlFormat="advanced" />
</providers>
</friendlyUrl>
Both sites are set up very similarly with our test search page portal 2 not 0 on the site that is not working (we need it working there first).
The major difference on the site we can think of is that multiple languages are enabled other than English.
We know for this site we have the Google search working if we make the results a popup we get correct search results.
We tried a Friendly URL Settings - setting with no luck. We would try again if someone had a working pattern for us.
We have search for solutions and saw a couple solutions we have tried.
We cannot use Google Custom Search 4.5 since it cannot be tied to a search results page - it appears to have to be self-contained on one page.
We have tried the "Keep in Querystring Regular Expression" fix based on Adword and Analytics as suggested with no luck. We would try again is someone know exactly what the correct regular expression should be.
Looking for any suggestions - we do know it can work since we have it working on the one site.