0

We have a production machine running Window Server 2003. Previously, development took place in a WAMP environment but a few users are moving to IIS.

The issue is, we have a directory on the server called /home/ that when visited, directs all information elsewhere.

For instance

yourwebsite.com/home/

would actually point to

yourwebsite.com/tabular/

without redirecting the page (i.e. the path wouldn't change)? How is this possible in IIS7.5?

Thanks,

Sam

Prinsig
  • 105

1 Answers1

0

You'll need to install the URL Rewrite module for IIS.

Then you can write a rule that will rewrite yourwebsite.com/home/ to yourwebsite.com/tabular/

The rule will be stored in the web.config for the application. This example would rewrite all URLs under /home/ to /tabular/

<rule name="Rewrite home to tabular">
    <match url="^/home/(.*)" />
    <action type="Rewrite" url="/tabular/{R:1}" />
</rule>