Montego Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic
Author Message
bsweb
Newbie
Newbie



Joined: Jul 12, 2006
Posts: 5

PostPosted: Wed Jul 12, 2006 3:58 pm Reply with quote

Hi Montego,

Wondered if you could offer any advice.

Thought I had done everything OK but when I click on any amazon link I see the html reference in the address bar BUT get a 404 Not found error page.

Any suggestions gratefully accepted
 
View user's profile Send private message
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1399

PostPosted: Wed Jul 12, 2006 11:06 pm Reply with quote

I am not familiar with nuke amazon. Are the links going to amazon or to some internal module? Maybe post a few of the links that you are trying to tap and I can see if I can figure them out. I need to see them PRIOR to tapping and your urlin/out and corresponding .htaccess line(s).

Lets see what we can figure out here.

_________________
“To err is human, but when the eraser wears out ahead of the pencil, you’re overdoing it.”
-- Josh Jenkins 
View user's profile Send private message Visit poster's website
bsweb
Newbie
Newbie



Joined: Jul 12, 2006
Posts: 5

PostPosted: Thu Jul 13, 2006 3:47 am Reply with quote

Hi montego,

LINKS

Before GT
Code:
http://www.mysite.co.uk/site/modules.php?name=Amazon&op=BrowseNodeSearch&keyword=130&mode=dvd

After GT
Code:
http://www.mysite.co.uk/site/amazon-search_BrowseNodeSearch_130_dvd.html

with 404 error

Before GT
Code:
http://www.mysite.co.uk/site/modules.php?name=Amazon&asin=0563487917

After GT
Code:
http://www.mysite.co.uk/site/amazon-buy-0563487917.html

with 404 error

.htaccess
Code:
#NukeAmazon .htaccess
RewriteRule ^asin-([A-Z0-9]*).html modules.php?name=Amazon&asin=$1 [L]
RewriteRule ^amazon-(direct|buy)-([A-Z0-9]*).html modules.php?name=Amazon&asin=$2 [L]
RewriteRule ^amazon-(direct|buy)-([A-Z0-9]*)-s-([a-zA-Z0-9]*).html modules.php?name=Amazon&asin=$2&PHPSESSID=$2 [L]
RewriteRule ^asin-search-([a-zA-Z0-9]*).html modules.php?name=Amazon&op=AsinSearch&keyword=$1 [L]
RewriteRule ^asin-add-([a-zA-Z0-9]*).html modules.php?name=Amazon&op=Add&asin=$1 [L]
RewriteRule ^asin-buy-([a-zA-Z0-9]*).html modules.php?name=Amazon&op=click&asin=$1 [L]
RewriteRule ^amazon-to-(ShowCart|home).html modules.php?name=Amazon&op=$1 [L]
RewriteRule ^amazon-search_(MarketPlaceSearch|BrowseNodeSearch|AuthorSearch|ArtistSearch|ActorSearch|DirectorSearch|ManufacturerSearch)_([[:punct:](){}a-zA-Z0-9]*)_([a-zA-Z0-9+-]*)_([0-9]*).html modules.php?name=Amazon&op=$1&keyword=$2&mode=$3&AMZpage=$4 [L]
RewriteRule ^amazon-search_(MarketPlaceSearch|BrowseNodeSearch|AuthorSearch|ArtistSearch|ActorSearch|DirectorSearch|ManufacturerSearch)_([[:punct:](){}a-zA-Z0-9]*)_([a-zA-Z0-9+-]*).html modules.php?name=Amazon&op=$1&keyword=$2&mode=$3 [L]
RewriteRule ^amazon-more_([a-zA-Z0-9]*)_([+(){}a-zA-Z0-9]*)_([a-zA-Z0-9-]*)_([0-9]*).html modules.php?name=Amazon&op=More&searchmode=$1&keyword=$2&mode=$3&AMZpage=$4 [L]
RewriteRule ^amazon-more_([a-zA-Z0-9]*)_([+(){}a-zA-Z0-9]*)_([a-zA-Z0-9-]*).html modules.php?name=Amazon&op=More&searchmode=$1&keyword=$2&mode=$3 [L]
RewriteRule ^amazon-([a-zA-Z0-9+]*)-([0-9]*).html modules.php?name=Amazon&op=ShowFI&catalog=$1&AMZpage=$2 [L]
RewriteRule ^amazon-([a-zA-Z0-9+]*).html modules.php?name=Amazon&op=ShowFI&catalog=$1 [L]
RewriteRule ^amazon-add-to-cart-([a-zA-Z0-9=:]*)-([0-9]*).html modules.php?name=Amazon&op=AddToCart&asin=$1&cartnode=$2 [L]
RewriteRule ^amazon-search-([a-zA-Z0-9]*)-([+(){}a-zA-Z0-9]*)-([0-9]*).html modules.php?name=Amazon&op=More&searchmode=KeywordSearch&keyword=$1&mode=$2&AMZpage=$3 [L]
RewriteRule ^nukeamazon.html modules.php?name=Amazon [L]


GT-Amazon.php urlins/outs
Code:

$urlin = array(
"'(?<!/)modules.php\?name=Amazon&amp;asin=([A-Z0-9]*)&PHPSESSID=([a-zA-Z0-9]*)'",
"'(?<!/)modules.php\?name=Amazon&amp;asin=([A-Z0-9]*)'",
"'(?<!/)modules.php\?name=Amazon&amp;op=AsinSearch&amp;keyword=([a-zA-Z0-9]*)'",
"'(?<!/)modules.php\?name=Amazon&amp;op=ShowFI&amp;catalog=([a-zA-Z0-9+]*)&amp;AMZpage=([0-9]*)'",
"'(?<!/)modules.php\?name=Amazon&amp;op=ShowFI&amp;catalog=([a-zA-Z0-9+]*)'",
"'(?<!/)modules.php\?name=Amazon&amp;op=(ShowCart|home)'",
"'(?<!/)modules.php\?name=Amazon&amp;op=More&amp;searchmode=(KeywordSearch|MarketPlaceSearch|BrowseNodeSearch|AuthorSearch|ArtistSearch|ActorSearch|DirectorSearch|ManufacturerSearch)&amp;keyword=([[:punct:](){}a-zA-Z0-9]*)&amp;mode=([a-zA-Z0-9+-]*)&amp;AMZpage=([0-9]*)'",
"'(?<!/)modules.php\?name=Amazon&amp;op=(KeywordSearch|MarketPlaceSearch|BrowseNodeSearch|AuthorSearch|ArtistSearch|ActorSearch|DirectorSearch|ManufacturerSearch)&amp;keyword=([[:punct:](){}a-zA-Z0-9]*)&amp;mode=([a-zA-Z0-9+-]*)'"
//"'(?<!/)modules.php\?name=Amazon&amp;op=(KeywordSearch|MarketPlaceSearch|BrowseNodeSearch|AuthorSearch|ArtistSearch|ActorSearch|DirectorSearch|ManufacturerSearch)&amp;keyword=([[:punct:](){}a-zA-Z0-9]*)&amp;mode=([a-zA-Z0-9+-]*)&amp;AMZpage=([0-9]*)'",
);

$urlout = array(
"amazon-buy-\\1-s-\\2.html",
"amazon-buy-\\1.html",
"asin-search-\\1.html",
"amazon-\\1-\\2.html",
"amazon-\\1.html",
"amazon-to-\\1.html",
"amazon-search_\\1_\\2_\\3_\\4.html",
"amazon-search_\\1_\\2_\\3.html",
"amazon-more_\\1_\\2_\\3_\\4.html",
"amazon-more_\\1_\\2_\\3.html"
);


Hope the above is what you asked for.

Many thanks for your interest and help

added.
PS: Think I better mention that the amazon module is the only one I have installed on a small ravensnuke based site before I decide whether to incorporate GT in main site. (Just in case you thought GT was up and working on the site)
 
View user's profile Send private message
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1399

PostPosted: Thu Jul 13, 2006 7:36 am Reply with quote

[quote="bsweb"](Just in case you thought GT was up and working on the site)[/quote]

Sorry, because of this statement, I have to ask: are other links working?


Edit: Also, by chance is this running on a local PC that is Windows / Apache based?

_________________
“To err is human, but when the eraser wears out ahead of the pencil, you’re overdoing it.”
-- Josh Jenkins 
View user's profile Send private message Visit poster's website
bsweb
Newbie
Newbie



Joined: Jul 12, 2006
Posts: 5

PostPosted: Thu Jul 13, 2006 8:05 am Reply with quote

Making it difficult aren't I??

No amazon links are working when GT on, of course they all work when the GT-Amazon module is renamed

No its hosted on a webserver

Some of the amazon links are in blocks so I presume will they require attention also.

Think I may have to add some of the modules/blocks that should work and see what happens.
So much for trying to take shortcuts!

Will have to do later though as I am not at home at the moment.
 
View user's profile Send private message
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1399

PostPosted: Thu Jul 13, 2006 9:02 am Reply with quote

Well, from just eyeballing it, I cannot see anything wrong with your statements AND it looks like it is doing the tapping.

Sounds to me like the Rewrite engine might not be set up. Do you have this line in your .htaccess file before your Rewrite statements?

RewriteEngine On

_________________
“To err is human, but when the eraser wears out ahead of the pencil, you’re overdoing it.”
-- Josh Jenkins 
View user's profile Send private message Visit poster's website
bsweb
Newbie
Newbie



Joined: Jul 12, 2006
Posts: 5

PostPosted: Thu Jul 13, 2006 10:29 am Reply with quote

Embarassed Embarassed Embarassed Embarassed Embarassed Embarassed

Its ALWAYS the simple things!

I'll just melt back into the background quietly

Many thank's works a treat now
 
View user's profile Send private message
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1399

PostPosted: Thu Jul 13, 2006 2:18 pm Reply with quote

It might be the simple things most of the time, but one never knows. Plus, when you've been looking at things a long time, it is easy to overlook the simple. Done it many times!

No problem. No need to "melt into the background". Wink

_________________
“To err is human, but when the eraser wears out ahead of the pencil, you’re overdoing it.”
-- Josh Jenkins 
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 4 Hours
 
Forums ©
linear-bunch
linear-bunch