ganesh_dabhade wrote:I know this can be done using .htaccess readwrite rules.
Actually no, it can not.
That is, not directly. First you have to setup a wildcard DNS entry to redirect all subdomains to your webserver's IP, and then use a wildcard vhost in Apache's config. Alternatively, you could manually setup each entry on both sides.
Either way, there is a lot more involved than just adding a line or two to a .htaccess file.