Altered URL from "other" search engines

Clients who find our site, via odd search engines, e.g. can end up with a URL string that is all goofed up. It is not possible to refresh a page if you have this string, because it takes you back to their version of Google.

My issue is my shopping cart. It is written in PHP, and the information is stored in sessions. For some clients this simply does not work.

Does anyone know of a way to clean up the URL so that only my site is listed after arriving at my site?

If you don’t understand my issue, go to search of any item at all. When the Google page comes up, click any listing, and check out the URL. Then try to refresh the page.

Any help at all is appreciated,


I think the problem you are talking about is that the web page is generating a FRAMESET for search results. This causes the browser location to stay at the search results URL, and when clicking on a search result, your site is loaded into a FRAME instead of replacing the FRAMESET. Thus when you click on the “Reload/Refresh” buttons you are reloading the FRAMESET, taking you back to the search results in the FRAME. (In Firefox/Mozilla you can right-click and select This Frame -> Reload Frame to reload just the FRAME).

One can use JavaScript to “break out of frames”:

[code] [/code]

:cool: Perl / MySQL / HTML+CSS

Thank you for the advice, but that did not do it.

Here is a partial example of a URL that is giving me problems.

This URL is the result after coming to my sight, and moving around through several pages.

Do you or anyone else have any other ideas?

Jeff stencils grass&url=

This URL means "run a script on that returns a FRAMESET that shows the results of a Google search for “laser stencils grass”

The problem is that links that are shown on web pages within a FRAMESET can never replace the FRAMESET unless you use JavaScript to do so. So no matter what links you click on, the browser will always think you are looking at “a script on that returns a FRAMESET that shows the results of a Google search for “laser stencils grass”” and so clicking reload/refresh will show you exactly that. Not even a server redirect would help, this is a client side problem.

Sorry, I am not sure how this problem would affect sessions, unless you are storing the session id in a URL and the session id is lost somehow when they have to traverse the search results again after clicking on “Reload/Refresh” ??


Here is a testcase, if you have JavaScript enabled:

  1. Go to
  2. Type “OpenVein Directory” in the Google search box and click the button
  3. The Google results should show “OpenVein Directory. The OpenVein Directory is now up and running, however not” as one of the first
  4. Click on that listing
  5. Notice that the URL in the browser bar has changed

And yeah, obviously if your visitors don’t have JavaScript enabled they are stuck in the FRAMESET unless they cut & paste your URL in to the location bar

:cool: Perl / MySQL / HTML CSS

And here is what the HTML spec says:

Basically this means that when you search using, they are putting a “subwindow” into the “window” and the search results are being shown in the “subwindow”. Clicking on a link in the “subwindow” replaces the document in the “subwindow”, but it does not replace the document in the “window”. That is why the URL the browser’s location bar will remain at - because its showing the document in the “window” (the FRAMESET) not the “subwindow” (the google results, or your site if you click on a result, etc)

Or think of it this way. You’re expecting visitors to only see your site. However, when they use those search engines, they are actually seeing the search site on the “outside” and your site on the “inside”. Clicking a link of an “inside” page will only make another page “inside” instead; the “outside” doesn’t change. However, when you bookmark the “outside” (copy the URL), it has an “inside” starting point - and for the URL you posted, this starting point is the Google search results.

:cool: Perl / MySQL / HTML CSS

My question is: do you actually have A LOT of clients coming from this thing? (Who on earth would use this god-knows-who so-called “search engine” which simply framed Google results?) Moi? I would simply forget it, isn’t worth even the time and effort to deal with. - Register your own domain with DreamHost for just $14.95 now