Does anyone know how to make wildcard domains with .htaccess?

Discussion in 'Apache' started by Dizzie, May 31, 2010.

  1. #1
    I want to make my site have wild card domain names. Does anybody know how to do this with .htaccess? thanks in advance.
     
    Dizzie, May 31, 2010 IP
  2. tolra

    tolra Active Member

    Messages:
    515
    Likes Received:
    36
    Best Answers:
    1
    Trophy Points:
    80
    #2
    You can't do it with .htaccess, it's done with DNS and Apache, in cPanel you use * as the wildcard part of the domain. Just pop a ticket in to your host and they should be able to sort it out for you.

    .htaccess only allows you to apply rules to handle the request in different ways e.g. route to a PHP script.
     
    tolra, May 31, 2010 IP