Hi, Firstly thanks in advance for reading this I am new to this and would appreciate the help. I have a website that is up and running (www.yardscape.co.nz). I have designed a mobile site (www.yardscape.co.nz/mobile) and have a sub domain (m.yardscape.co.nz). what I wish to do is have a redirect that redirects m.yardscape.co.nz to the /mobile folder... here is what I have so far. My question is how do I get this to work on all pages? I.E. if the type in m.yardscape.co.nz/contact.aspx it will work. web.config file code... <?xml version="1.0" encoding="UTF-8"?> <configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0"> <appSettings> <add key="SiteName" value="Yardscape Limited" /> <add key="WebsiteURL" value="http://www.yardscape.co.nz" /> <add key="EmailAddress" value="[email protected]" /> <add key="MailServer" value="mail.yardscape.co.nz" /> </appSettings> <system.webServer> <rule name="Redirect rule"> <match url="http://m.yardscape.co.nz" /> <conditions> <add input="{StaticRedirects:{REQUEST_URI}}" pattern="(.+)" /> </conditions> <action type="Redirect" url="http://www.yardscape.co.nz/mobile" redirectType="Found" /> </rule> </system.webServer> </configuration>
Did you also use your Control Panel to create the "m." subdomain? When I ping m.yardscape.co.nz it does not resolve to any IP address, which would explain why your redirection rule isn't working yet.