View Single Post


Old
  Post #6 (permalink)   02-07-2018, 10:06 AM
ughosting
HD Community Advisor
 
ughosting's Avatar
 
Join Date: Jan 2011
Location: London
Posts: 656

Status: ughosting is offline
It looks to me that you must be using a single site environment.

If you configure your nginx with virtual hosts put your domain in the correct virtual so that:-

1. your site is shown when you use your domain to resolve to your IP

2. Any other domain resolving to the same IP get another site with a standard index.html page
In that page place, inside the <head> and </head>

Put
<meta http-equiv="refresh" content="0;URL='http://www.quackquack.in'" />

This does not require .htaccess rules.
__________________
UnixGuru High Performance, Low Contention, Hosting
Elastic Sites (HIgh Powered Hosting Accounts) with 1 to 20 CPU Cores, 4 to 42GB of RAM. (Power of a VPS without the hassle)
Shared, Reseller, VPS, Dedicated & More available