tweenux
RSS Feed Email Feed

Archive for 'Apache2'

Redirect hostname.com/stuff to www.hostname.com/stuff

Okay,
The lazy days are over and I figured out it was time to create a more useful redirection of a hostname in my apache2 configuration files. The past few years I have been using this redirection method, but not been happy with it:

RedirectMatch ^/$ http://www.hostname.com

This is ok, but if the user is trying to reach [...]