rockstardev
rockstardev

Reputation: 13537

Setting up domain names locally for testing?

I will be using one hosting account with several domains parked on it along with a main domain name. I need to be able to show different content based on what domain is being accessed. So, my question is, how can I test this locally?

Any help with this would be greatly appreciated?

Upvotes: 0

Views: 741

Answers (1)

Bilal Ahmed
Bilal Ahmed

Reputation: 182

You can define multiple domains in your hosts file.

you can find it C:\Windows\System32\drivers\etc

There are examples written there to help you understand, how it works. then create a page lets say index.php and parse the domain there and redirect it to relevant domain.

Upvotes: 4

Related Questions