0 Members and 1 Guest are viewing this topic.
RewriteEngine On RewriteCond %{HTTP_HOST} ^test2.domain.az.pl$ [NC] RewriteRule ^(.*)$ http://www.test2.domain.az.pl/$1 [R=301,L]
RewriteEngine On RewriteCond %{HTTP_HOST} ^online.pl$ [NC] RewriteRule ^(.*)/$ http://www.online.pl/$1 [R=301,L]
Code: [Select]RewriteEngine On RewriteCond %{HTTP_HOST} ^online.pl$ [NC] RewriteRule ^(.*)/$ http://www.online.pl/$1 [R=301,L]This does not work too !
RewriteEngine OnRewriteCond %{HTTP_HOST} ^mydomain.com$RewriteRule (.*) http://www.mydomain.com/$1 [R=301,L]
RewriteEngine onRewriteBase /#for all requests on mydomain.comRewriteCond %{HTTP_HOST} mydomain.com$ [NC]#if they are not for the www.mydomain.comRewriteCond %{HTTP_HOST} !^www.mydomain.com$ [NC]#301 redirect to www.mydomain.comRewriteRule (.*) http://www.mydomain.com/$1 [R=301,L]
Page created in 0.04 seconds with 18 queries.