Virtual sub-domain in htaccess file - Please help

Discussion in 'Apache' started by afhayati, Aug 4, 2011.

  1. #1
    Hi

    I need to make virtual sub-domain in my server using htaccess file. anybody can help me?

    here's a sample of my url:
    http://www.mydomain.com/list.php?tag=xyz&page=1

    need to make like this one:
    http://xyz.mydomain.com/1

    would you please tell me how to make change in my htaccess file? I've found something in DP but it had just one parameter. here, I have 2 parameters in my link.

    thanks
     
    Last edited: Aug 4, 2011
    afhayati, Aug 4, 2011 IP