This post is part of my Your own Virtual Private Server hosting solution project.
Get the latest version of this article here: https://gist.github.com/9433480.
A website has to be only accessible by one specific host name. Otherwise search engines will index your website two or more times.
A lot of people think that a website should only be published as
I think this is wrong, using the
www section is a old fashioned way of how companies have structured their DNS records.
There are users which still use the
www before tipping an url and others who don’t.
However we will allow both of them to access our website.
Recently I’ve change the url for one of my GitHub projects.
- Old: https://github.com/janikvonrotz/PowerShell-Profile
- New: https://github.com/janikvonrotz/PowerShell-PowerUp
As you might know, I’ve used this url in several posts.
In order to make this obsolete links I have to replace them in every posts.
It’s obvious Apache2 is no more the first choice for a webserver, depending on the requirments Ngnix and IIS are now much more attractive.
Maybe you’ve already updated to Ngnix or IIS want to redirect from the old website to the new website in case Apache is still a dependency.