Results 1 to 15 of 15

Thread: AWS SE-Friendly URLs

  1. #1
    Registered Member incka's Avatar
    Join Date
    Aug 2003
    Location
    Wakefield, UK, EU
    Posts
    3,801

    AWS SE-Friendly URLs

    How would I get an ASIN to go like www.mysite.com/product/ASIN ?

    I'm using the code from Dev Shed.

  2. #2
    Senior Member chromate's Avatar
    Join Date
    Aug 2003
    Location
    UK
    Posts
    2,348
    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];

  3. #3
    Registered Member incka's Avatar
    Join Date
    Aug 2003
    Location
    Wakefield, UK, EU
    Posts
    3,801
    I'll try...

  4. #4
    Registered Member incka's Avatar
    Join Date
    Aug 2003
    Location
    Wakefield, UK, EU
    Posts
    3,801
    You on AIM or ICQ chromate?

  5. #5
    Registered Mike's Avatar
    Join Date
    May 2003
    Location
    UK
    Posts
    2,755
    In product it should be $asin = $var_array[2]; shouldn't it chromate?
    Don't you just love free internet games ?

  6. #6
    Future AstonMartin driver r2d2's Avatar
    Join Date
    Dec 2003
    Location
    UK
    Posts
    1,608
    The numbering will start at 0, so the second one is $var_array[1].

  7. #7
    Senior Member chromate's Avatar
    Join Date
    Aug 2003
    Location
    UK
    Posts
    2,348
    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.

  8. #8
    Registered Member incka's Avatar
    Join Date
    Aug 2003
    Location
    Wakefield, UK, EU
    Posts
    3,801
    OK, My MSN is sean@incka.com, but it only works 2 out of 4 days.

  9. #9
    Registered Mike's Avatar
    Join Date
    May 2003
    Location
    UK
    Posts
    2,755
    I'm using the same format, mysite.com/products/asin, and I use $var_array[2] that's all.
    Don't you just love free internet games ?

  10. #10
    Web Monkey MarkB's Avatar
    Join Date
    Nov 2003
    Location
    London, UK
    Posts
    1,783
    Mike, fancy sharing your code with lil ol' moi?
    Stepping On Wires - the new blog

  11. #11
    Registered Mike's Avatar
    Join Date
    May 2003
    Location
    UK
    Posts
    2,755
    Come on MSN Mark
    Don't you just love free internet games ?

  12. #12
    Web Monkey MarkB's Avatar
    Join Date
    Nov 2003
    Location
    London, UK
    Posts
    1,783
    Damn - just missed you.
    Stepping On Wires - the new blog

  13. #13
    Registered Member incka's Avatar
    Join Date
    Aug 2003
    Location
    Wakefield, UK, EU
    Posts
    3,801
    What! You wouldn't show me your code...

    I can't get mine to work..

  14. #14
    Registered Mike's Avatar
    Join Date
    May 2003
    Location
    UK
    Posts
    2,755
    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.
    Don't you just love free internet games ?

  15. #15
    Registered Member incka's Avatar
    Join Date
    Aug 2003
    Location
    Wakefield, UK, EU
    Posts
    3,801
    Um, Want some free advertising on Games2Go?

Similar Threads

  1. SE Friendly URLS...This should work shouldn't it?
    By Mike in forum Website Programming & Databases
    Replies: 1
    Last Post: 03-25-2004, 09:28 AM
  2. Search Engine friendly urls ?
    By Dan in forum Search Engine Optimization
    Replies: 6
    Last Post: 02-11-2004, 06:26 PM
  3. Multiple SE Friendly URLS
    By incka in forum Website Programming & Databases
    Replies: 6
    Last Post: 02-07-2004, 08:44 AM
  4. IIS 4.0 + Search Engine Friendly URL's
    By Stevens in forum Website Programming & Databases
    Replies: 14
    Last Post: 02-03-2004, 08:51 PM
  5. Search Engine Friendly URLS
    By dolphin in forum Search Engine Optimization
    Replies: 8
    Last Post: 12-01-2003, 09:01 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •