SEO URL problem

Discussion in 'PHP' started by chanakya, Aug 22, 2008.

  1. #1
    Hi,


    I have a SEO URL issue , I have made a arcade script at www.hostcurry.com/tdemon/one , I have used mod rewrite in it.


    Now http://hostcurry.com/tdemon/one/1-2/Action__&__Adventure/Alien has a game which give high score url to http://hostcurry.com/tdemon/one/index.php , But on completion of game it sends score to http://hostcurry.com/tdemon/one/1-2/Action__&__Adventure/Alien/index.php , Were "1-2/Action__&__Adventure/Alien" is the mod rewrite part, How should i go towards modifying .htaccess

    here is my .htaccess

    Options +FollowSymlinks
    RewriteEngine on
    RewriteRule ^(.*)-(.*)/(.*)/(.*)$ /tdemon/one/index.php?play=$2 [L]
    RewriteRule ^([0-10000])/$ /tdemon/one/category.php?id=$1 [L]
    RewriteRule ^cat_id_(.*)-start_(.*)-pagesize_(.*)$ /tdemon/one/category.php?id=$1&start=$2&pagesize=$3 [L]
     
    chanakya, Aug 22, 2008 IP
  2. lfhost

    lfhost Peon

    Messages:
    232
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #2
    set a base HREF in your head tags so it posts always to the root index i.e. to /one/index.php else you will have many issues and you might end up in an infinite loop with redirection.
     
    lfhost, Aug 22, 2008 IP
  3. ghprod

    ghprod Active Member

    Messages:
    1,010
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    78
    #3
    I want to know about .htacces too :)
     
    ghprod, Aug 22, 2008 IP