I've a php page with following string.
http://mydomain.com/businesspage.php?profile=Khafihan
So I'm trying to convert this url to following style
http://mydomain.com/Khafihan
Is it possible with php and how ?
Thanks for your help.
Regards.
I've a php page with following string.
http://mydomain.com/businesspage.php?profile=Khafihan
So I'm trying to convert this url to following style
http://mydomain.com/Khafihan
Is it possible with php and how ?
Thanks for your help.
Regards.
I think this .htaccess
rule should do what you want:
RewriteEngine On
RewriteRule ^([a-z0-9]+)$ /businesspage.php?profile=$1 [L]
You need to put the following lines into your .htaccess
file:
RewriteEngine On
RewriteRule /(.*)$ /businesspage.php?profile=$1