Namran Hussin Linux,Network Redirect without WWW to a WWW domain for Vhost.

Redirect without WWW to a WWW domain for Vhost.

Adding redirect to preferred domain with WWW instead of without www.

Use the following .


  ServerName www.namran.net
  ServerAlias namran.net
  RewriteEngine on
  RewriteCond %{HTTP_HOST}                ^namran.net(:80)?$
  RewriteRule ^/(.*)                      http://www.namran.net/$1 [L,R=301]

  
    Order deny,allow
    Allow from all
  
  ProxyPass / http://www.namran.net/
  ProxyPassReverse / http://www.namran.net/


Then restart the httpd.

And re-test.

Related Post

Installing java plugins for x86_64 CentOSInstalling java plugins for x86_64 CentOS

download the latest from java website : http://download.oracle.com/auth/otn-pub/java/jdk/6u27-b07/jdk-6u27-linux-x64-rpm.bin?e=1313557110&h=84d2a6dfdee93e926d179d506fafa3e3 sh jdk-6u27-linux-x64-rpm.bin ln -s /usr/java/jdk1.6.0_27/jre/lib/amd64/libnpjp2.so /usr/lib64/mozilla/plugins/libnpjp2.so test by : about:plugins Related posts: Firefox 3.6.13 and JRE plugins in CentOS 5.5 Java 1.6