?
Solved

IIS rewrite in web.config

Posted on 2012-03-14
1
Medium Priority
?
408 Views
Last Modified: 2012-03-23
Hello everyone, I am fairly new to IIS rewrite stuffs, so I would like some advice. Here is the scenario: I have a site called http://foo/en/us/default.aspx Now I would like to rewrite url in such a way that when people just type http://foo or http://foo/ it should automatically goes to http://foo/en/us/default.aspx as 301 redirect. Please note that I do not have access to IIS rewrite module directly and have to add in web.config manually. Any help or suggestions will be highly appreciated.
0
Comment
Question by:KoolAsIce
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 75

Accepted Solution

by:
käµfm³d   👽 earned 2000 total points
ID: 37718819
You might try:

<rewrite>
  <rules>
    <rule name="redirect">
      <match url="^$" />
      <action type="Redirect" url="http://foo/en/us/default.aspx" redirectType="Permanent" />
    </rule>
  </rules>
</rewrite>

Open in new window

0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

What is an ISAPI filter?   •      It's an assembly (.dll file) that can add or change the way IIS works.   •      They can be enabled globally for your web server or on a site-by-site basis.   When the IIS server receives a request, enabling the ISAPI fi…
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Suggested Courses
Course of the Month13 days, 11 hours left to enroll

800 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question