i have this url
http://www.example.com/user.php?user=solomon
i want to convert this into
how can i do this!! thanks :))
p.s. im using plesk
i have this url
http://www.example.com/user.php?user=solomon
i want to convert this into
how can i do this!! thanks :))
p.s. im using plesk
I'm not familiar with Plesk's capabilities, but on a LAMP server, you need to use Apache's mod_rewrite
module and have a wildcard DNS setup for *.example.com through your DNS provider (either your registrar or your hosting provider).
Your .htaccess
for your virtual host will look like this:
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !www.example.com$ [NC]
RewriteCond %{HTTP_HOST} ^(www.)?([a-z0-9-]+).example.com [NC]
RewriteRule (.*) user.php?user=%2 [NC,QSA]