Question

How do I direct my servers hostname(FQDN) to somewhere besides my single wordpress website with nginx?

Posted September 12, 2016 1.6k views
NginxUbuntuWordPressDigitalOcean

Hello!

I am new to server administrating and was wondering if there is a way to change the content shown for my hostname (ex. server.example.com) to something that is different from (ex. example.com).

I have finished 301 redirecting the www sub-domains but still do not quite understand what to do with the hostname sub-domain.

Will google view server.example.com and example.com mirroring the same content as duplicate content?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
1 answer

Google don’t have a way to notice server.example.com unless you’re linking to it from somewhere. But you can use a robots.txt file to be sure.

You can create a Nginx server block for server.example.com and have it’s own content there. Or you can 301 it to your main website. That won’t be a problem

  • I can’t express how thankful I am for your answer Tharindu Kumara!

    I’ve been searching all over the web for this and wasn’t able to find any information regarding the topic…

    I think I am going to go with the robots.txt and 301 redirect configuration!

Submit an Answer