Go back to previous page
Forum URL: http://www.dombom.com/cgi-bin/dcforum/dcboard.cgi
Forum Name: FatBomb
Topic ID: 26
#0, fatbomb.cgi/? converted to fatbomb.cgi?
Posted by bscrivener on Aug-18-04 at 04:26 PM
All,

Ever wonder why when calling fatbomb you had to always put the extra "/" before the "?" mark like:

fatbomb.cgi/?keywords=atlanta

If you don't do this, your request gets redirected to your fatbomb.cgi index page.

I got used to this quickly and adjusted my skins and I though all was well.

Recently I noticed that in my server logs that altavista and yahoo were referring surfers to the following types of addresses:

www.bonose.com/fatbomb/fatbomb.cgi?keywords=atlanta

instead of

www.bonose.com/fatbomb/fatbomb.cgi/?keywords=atlanta

This caused everyone to go to the index page which was not desired.

Well, I finally sat down and figured out a fix for this. If you want it, it is very easy to make. Here are the instructions:

Edit the file: fatbomb_install_dir/lib/Gamma/Script.pm

Line 30 by default should look like:
$path .= 'default' if $path =~/\/$/;

Add an extra line following it as line 31:
$path .= '/default' if $path =~/^$/;

Now you should have the following:
Line 30: $path .= 'default' if $path =~/\/$/;
Line 31: $path .= '/default' if $path =~/^$/;

This seems to fix the problem for me. Hopefully, I'll start seeing a few more PPC conversions on these searches.

Take care,
Bo


#1, RE: fatbomb.cgi/? converted to fatbomb.cgi?
Posted by totenmaske on Aug-24-04 at 10:28 PM
In response to message #0
Bo...that's very odd. I'm seeing 404's but there mostly calls to the faulty CPanel scripts where wannabe hackers are trying to gain access to the server...

----------------------
Stanley aka Totenmaske

Affiliate-Blog.com
My FatBomb Feeds
Cherry Bomb XML List
GothSeek.com - the Gothic Search Engine - Powered by FatBomb!


#2, RE: fatbomb.cgi/? converted to fatbomb.cgi?
Posted by tsuyoshi on Sep-05-04 at 04:26 PM
In response to message #0
Bo,

I might doing something wrong - as always, lol - but on the bottom of the results page, there's the links to next pages:

More: « Previous <1> <2> <3> <4> <5> Next »

After changing the Script.pm file as you recommended, I noticed that the links do not show up correctly:

ht-tp://my_bomb_site_com/cgi-bin/fatbomb/?skin=&keywords=las%20vegas&start=20&length=20

There supposed to be "fatbomb.cgi" after the directory "fatbomb", but missing.

Again, I might doing something wrong, but any suggestions greatly appreciated.

Thanks much,


#3, RE: fatbomb.cgi/? converted to fatbomb.cgi?
Posted by tsuyoshi on Sep-05-04 at 02:27 AM
In response to message #2
I just found the answer here:

http://www.dombom.com/dcforum/DCForumID24/21.html

Chris (Poker) posted this:

Quote
Look in the "deafult-results.html" at the very end it should look like this:

{% else %}
<a href="/cgi-bin/fatbomb/fatbomb.cgi/?skin={% form.skin as url %}. . . . . . .]</a>{% end %}

Obviously replace /cgi-bin/fatbomb/fatbomb.cgi with the path to your file. And remember I put the "curly brackets" in above for the forum. They are really square brackets.


so I believe, if anybody here wants to use Bo's modification, should use:

{% else %}
<a href="/cgi-bin/fatbomb/fatbomb.cgi?skin={% form.skin as url %}. . . . . . .]</a>{% end %}

just remove forward slash after "fatbomb.cgi".

Correct me if I'm wrong, and thanks much for reading this!