asp.net-mvc


Asp.net www redirect to non www


I have a site called farrukh.jaam.io ,when a user writes www.farrukh.jaam.io , then i want to redirect it to farrukh.jaam.io My site is in asp.net mvc and using IIS server.
Thanks.
<rule name="CanonicalHostNameRule1">
<match url="(.*)" />
<conditions>
<add input="{HTTP_HOST}" pattern="^www\.farrukh.jaam\.io$" negate="true" />
</conditions>
<action type="Redirect" url="http://farrukh.jaam.io/{R:1}" redirectType="Permanent" />
</rule>
<rule name="Redirect to HTTPS" stopProcessing="true">
<match url="(.*)" />
<conditions>
<add input="{HTTPS}" pattern="^OFF$" />
</conditions>
<action type="Redirect" url="https://{HTTP_HOST}/{R:1}" redirectType="Permanent" />
</rule>

Related Links

ElmahR Dashboard throws “Unable to compile template” error when Sending Commands
VS2012 add areas to an existing project? start over? with MVC5 or stick with MVC4
Edit view from HttpPost method
Best practive for logging errors (handled and unhandled) in MVC
ServiceStack request giving 500 for large request
Cross domain session asp mvc in IE and old browsers
Adding MVC Controller scaffolding error
Unable to debug plugin in NopCommerce
Displaying HTML and Images in MultiSelectList ASP.NET MVC Razor
#Html.DisplayFor() value not change after the postback
Location of Validation Message
ASP.NET Identity update column type for primary key Id in AspNetUsers table from a string to and int or a guid, yes or no?
Deploying ASP MVC 5 App with IIS 7.5
validation for dropdown in MVC3
MVC getting a list of music and image into a table
How to allow users to only edit their details in a catalog

Categories

HOME
ios
selenium
actions-on-google
collections
apache-pig
path
image-segmentation
stack
libreoffice
xquery
addeventlistener
format
ionic3
c++14
tin-can-api
akka.net
base
wav
android-vision
openui5
prerender
plc
w2ui
vast
stm32f4discovery
atg
rgdal
eonasdan-datetimepicker
epicorerp
scatter-plot
pyparsing
svgpanzoom
sqlite.swift
machine-language
capstone
imagemapster
google-domain-api
confirm
tibco-ems
windows-scripting
word-embedding
jpype
php-5.5
spark-submit
zfs
ms-jet-ace
multistore
notimplementedexception
tpl-dataflow
jcuda
vistadb
xceed
menustrip
webmail
sliding
accounts
mutation
highslide
storage-duration
subroutine
fab
linqtocsv
uac
autopy
openocd
symbian
session-replication
cocoon-gem
oboe.js
polygons
avalonedit
treegrid
mailx
ppl
bloodhound
min3d
centering
sbrk
mpj-express
dirpagination
sirtrevor
datasift-python
nsusernotificationcenter
chomsky-hierarchy
arbtt
northwind
dependency-walker
symfony-2.2
self-organizing-maps
server.mappath
orthographic
android-3.1
wiki-markup
cassandra-0.7
queryanalyzer
variable-names

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App