coding question

Marketcake

God of Leisure
Dec 6, 2009
450
8
0
Paradise
is there a way to use rewrite rules or something to make it so that any subdomain you go to (whether it's an actual subdomain or not) will redirect to the main domain?

like cars.deals.com, money.deals.com... no matter what you put before .deals.com, it will always go to another site like deals2.com