掲示板
redirect URL to portal
Hi,
I want to provide my website throw 2 URL's www.portango.de and www.portango.net. I use apache mod_jk to proxy from apache http to liferay/tomcat.
www.portango.de => hostname:8080
Now i want redirect www.portango.net => www.portango.de with the configuration in .htaccess in apache main dir ("/var/www" on my machine)
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www\.)?portango\.net$ [NC]
RewriteRule ^(.*)$ http://www.portango.de/$1 [R=301,L]
then I activated "mod_rewrite" in apache.
But it doesn't work! What I am doing wrong?
Thanks,
Morad.
I want to provide my website throw 2 URL's www.portango.de and www.portango.net. I use apache mod_jk to proxy from apache http to liferay/tomcat.
www.portango.de => hostname:8080
Now i want redirect www.portango.net => www.portango.de with the configuration in .htaccess in apache main dir ("/var/www" on my machine)
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www\.)?portango\.net$ [NC]
RewriteRule ^(.*)$ http://www.portango.de/$1 [R=301,L]
then I activated "mod_rewrite" in apache.
But it doesn't work! What I am doing wrong?
Thanks,
Morad.