http://mywebsite.com/index.php?user=john
I want to rewrite that in .htaccess like http://john.mywebsite.com
Can you help me.
http://mywebsite.com/index.php?user=john
I want to rewrite that in .htaccess like http://john.mywebsite.com
Can you help me.
You may want to look at wildcard subdomains - it'll need DNS config changes, and mod_rewrite may not like it at all. You should be able to analyse the hostname passed to the webserver within index.php though, and use that instead of the user GET parameter.
I'd be hesitant to try a purely mod_rewrite solution though.