• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 399
  • Last Modified:

301 redirect using IIS 7

I'm trying to do a series of redirects but im struggling to understand how to do a redirect on a virtual directory and on a directory which contains  specific content  in the pages names so e.g.

<location path="/olddir">
    <system.webServer>
      <httpRedirect enabled="true" destination="/newfile.aspx" httpResponseStatus="Permanent" />
    </system.webServer>
  </location>

and
  <location path="/news(.*)">
    <system.webServer>
      <httpRedirect enabled="true" destination="http://www.domain.com/about/news/$1" httpResponseStatus="Permanent" />
    </system.webServer>
  </location>

the thing im struggling to understtnad is as im using a cms the directorys are all virutal so my question is....

1) Is the above samples correct?
2) Will puttting these inthe root config apply to all sub folders

Thanks
webbo
0
Webbo_1980
Asked:
Webbo_1980
1 Solution
 
shalabhsharmaCommented:
You can use Ispairewrite module for it.
http://www.isapirewrite.com

0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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