This example can be used to redirect domains to a sub folder.
For example: http://www.discushoofddorp.nlĀ and http://www.discusmijdrecht.nl are redirected to the same server. This .htaccess configuration redirect the domain to a sub folder so google can index the page better.
1 2 3 4 5 6 |
RewriteEngine On RewriteCond %{HTTP_HOST} ^(www.)?domainexample1.com$ RewriteRule ^(/)?$ example1 [L] RewriteCond %{HTTP_HOST} ^(www.)?domainexample2.com$ RewriteRule ^(/)?$ example2 [L] |
Leave a Reply