WWW Ön Eki Eklemek
Domain url yapısının başına www ön eki ekler. Örn: maestropanel.com > www.maestropanel.com
<rule name=”non www to www” enabled=”true”>
<match url=”(.*)” />
<conditions>
<add input=”{HTTP_HOST}” negate=”true” pattern=”^www\.([.a-zA-Z0-9]+)$” />
</conditions>
<action type=”Redirect” url=”http://www.{HTTP_HOST}/{R:0}” appendQueryString=”true” redirectType=”Permanent” />
</rule>
WWW Ön Eki Kaldırma
Domain url yapısının başında eyr alan www ön ekini kaldırır. Örn: www.maestropanel.com > maestropanel.com
<rule name="Remove www" stopProcessing="true">
<match url="(.*)" ignoreCase="true" /> <conditions logicalGrouping="MatchAll"> <add input="{HTTP_HOST}" pattern="^www\.(.+)$" /> </conditions> <action type="Redirect" url="http://{C:1}/{R:0}" appendQueryString="true" redirectType="Permanent" /> </rule>
Alias Domain Yönlendirme
Domain adınızı değiştirdiyseniz veya 2. bir domain adıyla da sitenize erişilmesini istiyorsanız. Aşağıda ki kod işinize yarayacaktır. Örn: www.maestropanel.com/icerik.html – www.maestropanel.com/icerik.html
<rule name="Domains, yonlendirme" enabled="true"> <match url="(.*)" ignoreCase="true" /> <conditions> <add input="{HTTP_HOST}" pattern="eskisite.com" /> </conditions> <action type="Redirect" url="http://www.yenisite.com/{R:0}" appendQueryString="true" redirectType="Permanent" /> </rule>
Specific Alt Domain Yönlendirme
Alt domaini (subdomain) yer alan sitenizi farklı bir domain dizinine yönlendirmenizi sağlar. Örn: blog.maestropanel.com > maestropanel.com/blog
<rule name="Remove Blog" stopProcessing="true" enabled="true"> <match url="(.*)" ignoreCase="true" /> <conditions> <add input="{HTTP_HOST}" pattern="^(blog\.)(.*)$" /> </conditions> <action type="Redirect" url="http://www.replacementsite.com/" redirectType="Permanent" /> </rule>