Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-24-2013, 06:42 PM   PM User | #1
ahaberman25
New Coder

 
Join Date: Jan 2013
Posts: 19
Thanks: 2
Thanked 0 Times in 0 Posts
ahaberman25 is an unknown quantity at this point
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.
ahaberman25 is offline   Reply With Quote
Old 01-24-2013, 07:50 PM   PM User | #2
Fou-Lu
God Emperor


 
Fou-Lu's Avatar
 
Join Date: Sep 2002
Location: Saskatoon, Saskatchewan
Posts: 15,653
Thanks: 4
Thanked 2,451 Times in 2,420 Posts
Fou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to all
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.
__________________
As of PHP 5.5, the MySQL library has been officially deprecated. It is recommended to move to either MySQLi or PDO libraries for your mysql connectivity. See here for help choosing which interface you prefer: http://php.net/manual/en/mysqlinfo.api.choosing.php
Fou-Lu is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:48 AM.


Advertisement
Log in to turn off these ads.