Redirecting from Hostnames

Hi Everyone,

I do not want my site to be accessible through it's name.

I have tried a Redirect like:



    Redirect permanent /</virtualhost> 

but this does not work (whereas it does work with ServerName I suspect this might have to do with the fact that actually resolves to a different IP.

How do I block access through these hostnames?

More generally, how do I block / redirect everything through one hostname? I don't want to duplicate content and screw up my Google rank.


2 Replies

And why would anyone use the Linode host name to access your site (better yet, how would they know it)?


How do I block access through these hostnames?

Nevermind. I had my servers mixed up. And reverse DNS on my secondary server wasn't correct. The aforementioned Redirect does work as expected.



Please enter an answer

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct