May 19, 201511 yr Hi, Wonder if someone could help me out with a question about 301 redirection. I have sucessfully done 301 redirections from one site to another in the past by using a simple web.conf and this has worked well. This time I have 3 domains that need to 301 to a site but rather than 301 to its home page they need to 301 a specific page in the website i.e. oldcontact.html All the websites including the one we are trying to 301 to are hosted on a MS server with 1and1. I am struggling to get this to work. Any advice would be most welcome. Thanks for your time.
May 19, 201511 yr Welcome to WDF I am not too confident with MS servers, but remember I have had to add redirects in the past via web.config. Just opened my old files to check how I did it and that's what I have: <configuration> <system.webServer> <location path='URL to redirect'> <httpRedirect enabled="true" destination='URL to redirect' httpResponseStatus="Permanent" /> </location> </system.webServer> </configuration> Hope that helps Alternatively, you can use server side language to do 301 redirect, depending on which one your site's written in. Here is a tool that generates 301 redirects in different languages: http://www.rapidtables.com/web/tools/redirect-generator.htm
Create an account or sign in to comment