Hello,
i have a problem with this code:
if ($host ~* ^[a-z]\.net)
{
rewrite ^/(.*)$ http://www.$domain/$1 permanent;
}
I wanna redirect the domain without subdomain for eg.
mysite.net
mysite2.com
mysite2.org
i not want the redirect when the subdomain is present for eg.
mysub.mysite.net
www.mysite.net
I need dynamic configuration.