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 2013
    Posts
    29
    Thanks
    2
    Thanked 0 Times in 0 Posts

    trying to change the php address

    Right now I have a link that is being created by a get variable that is "www.kingsoap.com/?r=therandymajor" and I would like it to just display/be able to use the address "www.kingsoap.com/therandymajor" in other words remove the ?r= from the address bar. It looks more professional and I would prefer it. I am not sure how to achieve this.

  • #2
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,980
    Thanks
    4
    Thanked 2,659 Times in 2,628 Posts
    You would use mod_rewrite to accomplish this by mapping /therandymajor to ?r=therandymaor. The alternative would be to create a subdirectory called /therandymajor and add an index.php file to it.
    PHP Code:
    header('HTTP/1.1 420 Enhance Your Calm'); 


  •  

    Posting Permissions

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