.htaccess problem

Discussion in 'Site & Server Administration' started by Psychotomus1, Feb 18, 2007.

  1. #1
    whats wrong with this

    RewriteRule ^game([_A-Za-z0-9-]+)?$.html /game.php?id=$1 [NC,L]

    my URL now is game.php?id=NUM

    i want to change it to gameNUM.html
     
    Psychotomus1, Feb 18, 2007 IP
  2. tnd

    tnd Well-Known Member

    Messages:
    92
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    123
    #2
    I think you have to remove $ from rewrite rule because $ mean end of line
     
    tnd, Feb 18, 2007 IP
  3. Nintendo

    Nintendo ♬ King of da Wackos ♬

    Messages:
    12,890
    Likes Received:
    1,064
    Best Answers:
    0
    Trophy Points:
    430
    #3
    Options +Indexes
    Options +FollowSymlinks
    RewriteEngine on
    RewriteBase /
    RewriteRule ^game([^.]+)\.html$ game.php?id=$1 [L]
     
    Nintendo, Feb 19, 2007 IP
  4. Psychotomus1

    Psychotomus1 Banned

    Messages:
    411
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #4
    hers another problem. ;]

    i heard your a pro and at this?

    I have a url pages.php?type=football&title=ravens-loose

    how cna i make my url
    /football/ravens-loose
     
    Psychotomus1, Feb 19, 2007 IP