URL rewrite issue in IIS 7.5. Want to redirect www.abc.com to www.abc.com/home.aspx. Help?

Hi there;

I trying to do an URL rewrite issue in IIS 7.5. I want to redirect www.abc.com to www.abc.com/home.aspx.

I followed this but failed.
http://geekswithblogs.net/kit/archive/2009/04/19/131291.aspx

Regards
LVL 12
jazzIIIloveAsked:
Who is Participating?
 
Dave BaldwinFixer of ProblemsCommented:
Why don't you make 'home.aspx' your Default Document?  That would make it automatically come up for 'http://www.abc.com'.  http://www.iis.net/configreference/system.webserver/defaultdocument
0
 
jazzIIIloveAuthor Commented:
Good approach but the site is on the server now, and i don't want to mess the configurations again.

but i found a solution for this, voila:
<system.webServer>
  <defaultDocument>
    <files>
      <clear />
      <add value="Home.aspx" />
    </files>
  </defaultDocument>
</system.webServer>

regards
0
 
jazzIIIloveAuthor Commented:
I've requested that this question be closed as follows:

Accepted answer: 0 points for jazzIIIlove's comment #a38373219

for the following reason:

&lt;system.webServer&gt;<br />&nbsp; &lt;defaultDocument&gt;<br />&nbsp; &nbsp; &lt;files&gt;<br />&nbsp; &nbsp; &nbsp; &lt;clear /&gt;<br />&nbsp; &nbsp; &nbsp; &lt;add value=&quot;Home.aspx&quot; /&gt;<br />&nbsp; &nbsp; &lt;/files&gt;<br />&nbsp; &lt;/defaultDocument&gt;<br />&lt;/system.webServer&gt;
0
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

 
Dave BaldwinFixer of ProblemsCommented:
That's just another way to make "Home.aspx" your default document as I suggested.  That may be an easier way for you to do it but you actually have changed the configuration by doing that.  ??
0
 
jazzIIIloveAuthor Commented:
Actually, above comment is somehow parsed to html tags, the thing I have done in web.config file is as follows:

but i found a solution for this, voila:
<system.webServer>
  <defaultDocument>
    <files>
      <clear />
      <add value="Home.aspx" />
    </files>
  </defaultDocument>
</system.webServer>

Regards.
0
 
jazzIIIloveAuthor Commented:
ok, another problem is that actually I want to award points to you, but failed to do so. Help me?

regards.
0
 
Dave BaldwinFixer of ProblemsCommented:
You'll have to wait until the mods respond.  Then they can open the question so you can change the points.

The page I linked above show exactly what you did.  It's about halfway down the page.
0
 
jazzIIIloveAuthor Commented:
0
 
Dave BaldwinFixer of ProblemsCommented:
Thanks.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.