Title: Domain based variables
Last modified: August 22, 2016

---

# Domain based variables

 *  [paullee357](https://wordpress.org/support/users/paullee357/)
 * (@paullee357)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/domain-based-variables-1/)
 * Is there a PHP or WordPRess variable that I can assign based on the domain name?
 * For example, I own a Dog and Cat washing business and own the domains CatWashers.
   com and DogWashers.com. Currently they both point to the same wordpress install
   where I use “Dog or Cat” everywhere on the home page. “Your Dog or Cat will leave
   smelling fresh!”
 * I would like if someone arrived using DogWashers.com to have the home page content
   say “Your Dog will leave smelling fresh!” and if they arrived using CatWashers.
   com, it would say “Your Cat will leave smelling fresh!”
 * Is that possible?

The topic ‘Domain based variables’ is closed to new replies.

## Tags

 * [domain](https://wordpress.org/support/topic-tag/domain/)
 * [variables](https://wordpress.org/support/topic-tag/variables/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [paullee357](https://wordpress.org/support/users/paullee357/)
 * Last activity: [11 years, 11 months ago](https://wordpress.org/support/topic/domain-based-variables-1/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
