Solved

IIS rewrite in web.config

Posted on 2012-03-14
1
405 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
1 Comment
 
LVL 75

Accepted Solution

by:
käµfm³d   👽 earned 500 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

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

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

Suggested Solutions

Lync server 2013 or Skype for business Backup Service Error ID 4049 – After File Share Migration
A phishing scam that claims a recipient’s credit card details have been “suspended” is the latest trend in spoof emails.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

820 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