Hello and welcome to our community! Is this your first visit?
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
    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. #2
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Saskatoon, Saskatchewan
    Thanked 2,662 Times in 2,631 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'); 
    Been gone for a few months, and haven't programmed in that long of a time. Meh, I'll wing it ;)


Posting Permissions

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