rustle
By:
rustle

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

September 12, 2016 235 views
WordPress Nginx DigitalOcean Ubuntu

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?

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!

Have another answer? Share your knowledge.