Results 1 to 2 of 2

Thread: Mod_Rewrite help

  1. #1
    Join Date
    Sep 2008
    Posts
    44
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Smile Mod_Rewrite help

    I am trying to make it so that this url:
    Code:
    http://loclahost/gamer/index.php?id=1
    becomes
    Code:
    http://localhost/gamer/1
    What mod_rewrite code do i need?

    Thanks for your time
    Last edited by dkblackhawk; 01-17-2010 at 03:54 PM.

  2. #2
    Join Date
    Sep 2008
    Posts
    44
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    Code:
    RewriteEngine On
    RewriteRule ^([0-9]+)$ index.php?id=$1
    RewriteBase /gamer/

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
  •