I am trying to put something in my .htaccess file that will allow me to change the following URL:
http://www.mysite.com/profile?user=theuser
To something like:
http://www.mysite.com/profile/theuser
But in the page, still be able to do something like:
echo $_GET['user']; // echos "theuser"
Is this possible? How would I do this?
NOTE: I am trying to get the URL in the address bar to show http://www.mysite.com/profile/theuser
Enable mod_rewrite and .htaccess through
httpd.confand then put this code in your.htaccessunderDOCUMENT_ROOTdirectory: