Click here to Skip to main content
15,891,473 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Hey Friends..plz help me out... Pin
Blikkies6-Oct-13 20:27
professionalBlikkies6-Oct-13 20:27 
AnswerRe: Hey Friends..plz help me out... Pin
ais076-Oct-13 20:39
ais076-Oct-13 20:39 
SuggestionRe: Hey Friends..plz help me out... Pin
Richard Deeming7-Oct-13 1:33
mveRichard Deeming7-Oct-13 1:33 
AnswerRe: Hey Friends..plz help me out... Pin
Richard Deeming7-Oct-13 1:38
mveRichard Deeming7-Oct-13 1:38 
AnswerRe: Hey Friends..plz help me out... Pin
blachsmith7-Oct-13 22:54
blachsmith7-Oct-13 22:54 
AnswerRe: Hey Friends..plz help me out... Pin
CIKolkataDeveloper10-Nov-13 22:40
CIKolkataDeveloper10-Nov-13 22:40 
QuestionEmbed an Image in a Datagrid Pin
JCotter4-Oct-13 2:48
JCotter4-Oct-13 2:48 
Question301 redirect on IIS. Redirect non-www to www Pin
jokertin924-Oct-13 1:47
jokertin924-Oct-13 1:47 
XML
I ought to redirect my website from non-www to www on IIS 6. e.g if I enter domain.com in the url, it has to redirect to www.domain.com for SEO optimization.

I followed the video "http://www.youtube.com/watch?v=PYxabNrIMQ4" for creating my rewrite rule. And I made it as below

<system.webServer>
<rewrite>
<rules>
<rule name="Redirect to www" patternSyntax="Wildcard" stopProcessing="true">
<match url="*" />
<conditions>
<add input="{HTTP_HOST}" pattern="mydomain.com" />
</conditions>
<action type="Redirect" url="http://www.mydomain.com/{R:0}" />
</rule>
</rules>
</rewrite>

But it is not working as expected. Help me out to find the solution.

Note: My Visual studio shows warning like "The element 'system.webServer' has invalid child element 'rewrite'".

I believe it doesn't make any problem.

AnswerRe: 301 redirect on IIS. Redirect non-www to www Pin
Richard Deeming4-Oct-13 2:00
mveRichard Deeming4-Oct-13 2:00 
QuestionEnable / Disable Regular Expression Validator based on Dropdownlist selection Pin
priyaahh3-Oct-13 21:15
priyaahh3-Oct-13 21:15 
AnswerRe: Enable / Disable Regular Expression Validator based on Dropdownlist selection Pin
Blikkies3-Oct-13 22:02
professionalBlikkies3-Oct-13 22:02 
AnswerRe: Enable / Disable Regular Expression Validator based on Dropdownlist selection Pin
Ajay_Saini5-Oct-13 6:37
Ajay_Saini5-Oct-13 6:37 
AnswerRe: Enable / Disable Regular Expression Validator based on Dropdownlist selection Pin
www.Developerof.NET5-Oct-13 8:02
www.Developerof.NET5-Oct-13 8:02 
QuestionEntity Framework - NVarchar data type update issue Pin
Ganesan Marappan3-Oct-13 3:36
Ganesan Marappan3-Oct-13 3:36 
QuestionUse CMS (umbraco) or build from scratch Pin
dahund3-Oct-13 1:34
dahund3-Oct-13 1:34 
GeneralEdit GridView Row not working when new row is inserted on GridView RowCreated Pin
Member 99752793-Oct-13 1:04
Member 99752793-Oct-13 1:04 
Questionweb API - C# Pin
miss7863-Oct-13 0:03
miss7863-Oct-13 0:03 
AnswerRe: web API - C# Pin
Kornfeld Eliyahu Peter3-Oct-13 3:03
professionalKornfeld Eliyahu Peter3-Oct-13 3:03 
GeneralRe: web API - C# Pin
miss7863-Oct-13 3:48
miss7863-Oct-13 3:48 
GeneralRe: web API - C# Pin
Kornfeld Eliyahu Peter3-Oct-13 9:45
professionalKornfeld Eliyahu Peter3-Oct-13 9:45 
GeneralRe: web API - C# Pin
miss7868-Oct-13 1:20
miss7868-Oct-13 1:20 
GeneralRe: web API - C# Pin
Kornfeld Eliyahu Peter8-Oct-13 1:32
professionalKornfeld Eliyahu Peter8-Oct-13 1:32 
GeneralRe: web API - C# Pin
miss7868-Oct-13 2:26
miss7868-Oct-13 2:26 
GeneralRe: web API - C# Pin
Kornfeld Eliyahu Peter8-Oct-13 19:55
professionalKornfeld Eliyahu Peter8-Oct-13 19:55 
GeneralRe: web API - C# Pin
miss78610-Oct-13 5:18
miss78610-Oct-13 5:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.