View Full Version : AWS SE-Friendly URLs
incka
01-31-2004, 10:10 AM
How would I get an ASIN to go like www.mysite.com/product/ASIN ?
I'm using the code from Dev Shed.
chromate
01-31-2004, 10:50 AM
Make sure you have the "product" file set up in .htaccess to be parsed by PHP.
then in product do:
$var_array = explode("/",$PATH_INFO);
$asin = $var_array[1];
incka
01-31-2004, 11:00 AM
I'll try...
incka
01-31-2004, 11:08 AM
You on AIM or ICQ chromate?
In product it should be $asin = $var_array[2]; shouldn't it chromate?
The numbering will start at 0, so the second one is $var_array[1].
chromate
01-31-2004, 12:28 PM
Not unless the asin occurs two slashes after the file name it's been referred to from. lol. If you follow that! :)
Incka, I'm on MSN Messenger but that's it.
incka
01-31-2004, 12:29 PM
OK, My MSN is sean@incka.com, but it only works 2 out of 4 days.
I'm using the same format, mysite.com/products/asin, and I use $var_array[2] that's all.
MarkB
01-31-2004, 05:03 PM
Mike, fancy sharing your code with lil ol' moi?;)
MarkB
02-01-2004, 02:06 AM
Damn - just missed you. :)
incka
02-01-2004, 10:20 AM
What! You wouldn't show me your code...
I can't get mine to work..
Mark has given me free advertising on his site though. If I had to pay it would be quite expensive I would have thought, so the least I can do is give him the script I am using.
incka
02-01-2004, 11:57 PM
Um, Want some free advertising on Games2Go?
Powered by vBulletin® Version 4.2.2 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.