Redirect domain from www on Apache
First locate the virtual host configuration file for Apache related to the domain, on FreeBSD it should be here:
- cd /usr/local/etc/apache/vh
Now add following in between the begin <VirtualHost *> and end </VirtualHost>
- RewriteEngine on
- RewriteCond %{HTTP_HOST} ^www\.(.*)
- RewriteRule ^/(.*)$ http://klauskjeldsen.dk/$1 [R=301]
Related Articles:
apache configuration redirect • local redirect • how to locate apache on mac • apache disable domain redirect • itunes apache redirect • locate redirects in apache • wl500gp apache2 • apache redirect / • apache redirect nokia • redirection nokia 6300 • apache redirect • 301 redirect apache snow leopard • apache configuration redirect • local redirect • how to locate apache on mac • apache disable domain redirect • itunes apache redirect • locate redirects in apache • wl500gp apache2 • apache redirect / • apache redirect nokia • redirection nokia 6300 • apache redirect • 301 redirect apache snow leopard • (2.5999 ms)





