Dynamic subdomains, mod_rewrite and trailling variables

Discussion in 'Apache' started by tutunmayan, May 19, 2007.

  1. #1
    Hi everybody,
    I used to thougth i am confortable with mod-rewrite until subdomains get into.

    Here is the problem:

    i want to convert http://john.mysite.com/friends
    to http://mysite.com/index.php?user=john&page=friends

    users are dynamicaly created (john is interchangeable with any string)

    I think it is not that hard.
    Thank you for your help
     
    tutunmayan, May 19, 2007 IP