Amazon store redirect help

Discussion in 'PHP' started by Dave Hybrid, Oct 12, 2006.

  1. #1
    Hello all,

    I have an amazon store located at www.mydomain.com/shop.php

    Now if i forward my domain www.mydomain.com to it it doent work.

    So i have setup an index.php file that redirects to the above shop.

    All works fine except lots of site tools refuse to work like back link checkers etc, now as Im guessing they cant follow the redirect, Im also worried google will not favour this method.

    Thanks,

    Dave.
     
    Dave Hybrid, Oct 12, 2006 IP
  2. ThomasNederman

    ThomasNederman Peon

    Messages:
    112
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    The best idea would be to change your httpd.conf change the line
    DirectoryIndex index.php
    to
    DirectoryIndex shop.php

    should work, good luck
     
    ThomasNederman, Oct 13, 2006 IP
  3. penagate

    penagate Guest

    Messages:
    277
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Why can't you just rename shop.php to index.php?
     
    penagate, Oct 13, 2006 IP
  4. Dave Hybrid

    Dave Hybrid Active Member

    Messages:
    997
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    83
    #4
    Because all the code points to shop.php so if I change the name of the file then links to 'home' no longer work. Amazon encrypt the files so they also cannot be edited inside.

    I did fix this myself, i added a file called index.php which is a clone of shop.php, shop.php must also be left on your server.

    This way index.php sorts the redirect issue and when clicking home buttons that link to shop.php the file still exists so all works fine.

    Dave
     
    Dave Hybrid, Oct 13, 2006 IP
  5. penagate

    penagate Guest

    Messages:
    277
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Hmm, that shouldn't be necessary.

    Show us the rule(s) you used to make the redirect. Did you use a 301 code?
     
    penagate, Oct 13, 2006 IP
  6. Dave Hybrid

    Dave Hybrid Active Member

    Messages:
    997
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    83
    #6
    No, just used domain forwarding in my control panel.
     
    Dave Hybrid, Oct 13, 2006 IP