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 2 of 2
  1. #1
    New Coder
    Join Date
    Jan 2011
    Posts
    76
    Thanks
    1
    Thanked 2 Times in 2 Posts

    Need some help with URL replace

    Hello so I know in .htaccess you can do something like this
    Code:
    RewriteRule ^id/([a-zA-Z0-9]+)$ profile.php?id=$1
    And a URL with such http://website.com/profile.php?id=admin will be replaced to http://website.com/id/admin, but is there a way to make it look like this http://website.com/admin and remove the "id" part of the URL?

    Edit: Nevermind, I fixed it.
    Last edited by xiong_ster123; 07-04-2013 at 08:08 AM. Reason: Resolved

  • #2
    New Coder
    Join Date
    Dec 2011
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts
    How did you fix it? because i am looking for the same thing, would you please provide some details because i'm still noob in htaccess
    Thank you


  •  

    Posting Permissions

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