htaccess help

Discussion in 'Programming' started by Tomp, Jul 2, 2009.

  1. #1
    Hey,

    I need to set up so that htaccess redirects all sub domains to a php file, is there any way to do this?

    for example

    1234.mydomain.co.uk > mydomain.co.uk/php.php?1234

    so the sub domain basically acts as the variable.

    i want this to work for any subdomain entered

    Thanks

    Tom
     
    Tomp, Jul 2, 2009 IP
  2. Tomp

    Tomp Well-Known Member

    Messages:
    279
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    105
    #2
    Anyone? could really use some help :)
     
    Tomp, Jul 6, 2009 IP
  3. Bohra

    Bohra Prominent Member

    Messages:
    12,573
    Likes Received:
    537
    Best Answers:
    0
    Trophy Points:
    310