Hello!

I have a cPanel server and I would like to setup something special for one domain.

I would like to have a landing page ( .html most likely ) that will only present itself if the viewer types in the ip address instead of the actual domain name.

If they type in the domain name, it can go ahead to the index.php as normal.

Should I just add a php blip to the top of the index.php to look and see if the ip address was used for the address and quickly load the landing page instead?

Or should this be something done on the .htaccess level?

I'm curious as to your thoughts, thanks for any advice.
.