Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder UrbanTwitch's Avatar
    Join Date
    Apr 2006
    Posts
    485
    Thanks
    44
    Thanked 1 Time in 1 Post

    Making getmodel.php?id=Dan into Dan

    Ok so I want the following link: http://sodadome.com/sodazoo/getmodel.php?id=Tidy

    I want it users to type http://sodadome.com/sodazoo/tidy to get to the following link I listed above.

    I know its possible using .htaccess and mod_rewrite but I have no luck. This is what I tried and it failed:

    RewriteEngine On
    RewriteRule /sodazoo/(.*)$ /sodazoo/getmodel.php?id=$1

    Yes the folder /sodazoo/ is created.
    Formerly MysticScript

    6+ years club

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,865
    Thanks
    160
    Thanked 2,224 Times in 2,211 Posts
    Try
    Code:
    RewriteEngine On
    RewriteRule ^sodazoo/(.*)$ /sodazoo/getmodel.php?id=$1 [L]
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #3
    Regular Coder UrbanTwitch's Avatar
    Join Date
    Apr 2006
    Posts
    485
    Thanks
    44
    Thanked 1 Time in 1 Post
    Thanks! :-)
    Formerly MysticScript

    6+ years club


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •