[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1085
  • Last Modified:

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
0
jazzIIIlove
Asked:
jazzIIIlove
  • 5
  • 4
1 Solution
 
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
NEW Veeam Backup for Microsoft Office 365 1.5

With Office 365, it’s your data and your responsibility to protect it. NEW Veeam Backup for Microsoft Office 365 eliminates the risk of losing access to your Office 365 data.

 
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

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

  • 5
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now