Link to home
Start Free TrialLog in
Avatar of jazzIIIlove
jazzIIIloveFlag for Sweden

asked on

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
ASKER CERTIFIED SOLUTION
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jazzIIIlove

ASKER

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
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;
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.  ??
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.
ok, another problem is that actually I want to award points to you, but failed to do so. Help me?

regards.
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.
Thanks.