Problem with .htaccess. Need your help

Discussion in 'Apache' started by Searchtheweb, Jan 4, 2010.

  1. #1
    Hello,

    I use yourarcadescript gaming CMS on this website : http://jocurigratis.pubtv.ro.

    I have the following problem using .htaccess mod rewrite (i already have mod rewrite enabled on the server) :

    I made a modification to the .htaccess file and now the game's URL works ok, but the category and page url doesn't work ok, as it shows the content of the homepage without displaying the thumbs of the games. What should i modify in order to work these too ?
    This what i have now:

    Options +FollowSymLinks
    RewriteEngine on
    RewriteRule ^([^/]*)/([^/]*)/([^/]*)\.html$ /index.php?act=$2&page=$3
    RewriteRule ^([^/]*)/([^/]*)\.html$ /index.php?act=$1&id=$2 [Last] >>>>>> This is the one that works, for the game(i tried to replace $1 with the word "game" but then, the game url doesn't work, but the category's and page's URL work. It's either the game url working, or the others two, but never all 3 of them at the same time :(
    RewriteRule ^([^/]*)/([^/]*)\.html$ /index.php?act=$2&page=$3

    This is the only way the game's URL works for now :( Can anyone help me ? Please ... I'm trying to resolve this matter for 6 days now ...

    So, my .htaccess is :
    Options +FollowSymLinks
    RewriteEngine on
    RewriteRule ^([^/]*)/([^/]*)/([^/]*)\.html$ /index.php?act=$2&page=$3
    RewriteRule ^([^/]*)/([^/]*)\.html$ /index.php?act=$1&id=$2 [Last]
    RewriteRule ^([^/]*)/([^/]*)\.html$ /index.php?act=$2&page=$3

    What should i do in order to display everything ok, not only the game's link ?

    Thank you in advance
     
    Searchtheweb, Jan 4, 2010 IP
  2. Nintendo

    Nintendo ♬ King of da Wackos ♬

    Messages:
    12,890
    Likes Received:
    1,064
    Best Answers:
    0
    Trophy Points:
    430
    #2
    has to have something unique in each line. Apache will have no idea which line to use if they are the same. For example, have

    RewriteRule ^([^/]*)/id/([^/]*)\.html$ /index.php?act=$1&id=$2 [Last]
    RewriteRule ^([^/]*)/page/([^/]*)\.html$ /index.php?act=$1&page=$2
     
    Nintendo, Jan 6, 2010 IP
  3. Searchtheweb

    Searchtheweb Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thank you very much for helping me!
     
    Searchtheweb, Jan 7, 2010 IP