One way of achieving it could be to setup an IIS site to handle the 301 redirect if you have the urlredirect/urlrewrite module activated in IIS.
The approach is
1: Create a IIS website called "Redirect example.be"
2: Point it to an empty folder
3: In the bindings setup www.example.be and example.be (You will probably need to add the last binding once the site is created as it seems that it's only possible to add one binding during setup)
4: Click on the IIS site - You should now see some different options for the site - If the rewrite/redirect module is activated then you can click it and add a redirect rule where you can make a 301 redirect to the desired domain.
Can't remember if the 301 tracker package can handle this scenario as well. But it's good for page redirects and is perhaps a package you can benefit from in other circumstances as well.
Config file is in the config folder with sample rewriting and a quick Google will give you the full documentation for urlrewriting.net to do your perm redirections.
Redirect domain to domain/nl
I have created a multilingual website in umbraco 7.
To prevent duplicated content for SEO I want http://www.example.be to be redirected , 301 permantly, to http://www.example.be/nl also http://example.be must be redirected to http://www.example.be/nl.
How can I accomplish this?
Hi Michaël
One way of achieving it could be to setup an IIS site to handle the 301 redirect if you have the urlredirect/urlrewrite module activated in IIS.
The approach is
1: Create a IIS website called "Redirect example.be"
2: Point it to an empty folder
3: In the bindings setup www.example.be and example.be (You will probably need to add the last binding once the site is created as it seems that it's only possible to add one binding during setup)
4: Click on the IIS site - You should now see some different options for the site - If the rewrite/redirect module is activated then you can click it and add a redirect rule where you can make a 301 redirect to the desired domain.
Can't remember if the 301 tracker package can handle this scenario as well. But it's good for page redirects and is perhaps a package you can benefit from in other circumstances as well.
Hope this helps.
/Jan
Can I use the regular iirf.ini file? Because in other non umbraco sites I use this which is provided by my hosting company.
Hi Michaël
Hmm, I don't know that. Have never heard of such file. But perhaps...I guess? :)
/Jan
Use the inbuilt urlrewriting.net?
Config file is in the config folder with sample rewriting and a quick Google will give you the full documentation for urlrewriting.net to do your perm redirections.
is working on a reply...