Tuesday, June 23, 2009

IIS Basics: Create a URL Redirect

Sometimes you may end up very long URLs like http://internal/sites/hr/benefits/default.aspx.  You can easily create a redirect which allows users to have a URL like http://benefits by using the following steps:

1. Create a DNS entry that contains the name you want used and the server you want it mapped to. You may need to request this from your network team. See the following for more details: Add an alias (CNAME) resource record to a zone

2. Open Start --> Run and type: inetmgr

clip_image002

3. Click OK.

4. Open the tree view navigation on the left pane until you find Web Sites.

5. Right-click on Web Sites and click on New –> Web Site…

clip_image004

6. Click Next when the dialog opens.

clip_image006

7. Type in a description and click Next.

clip_image008

8. Enter the host header and click Next.

clip_image010

9. For the time being, enter c:\ and click Next. This gets changed later on when this is changed to a redirect.

clip_image012

10. Click Next.

clip_image014

11. Click Finish.

clip_image016

12. Right-click on the name you used in step 7 and click Properties.

clip_image018

13. Click on the Home Directory tab, change the top radio button to A redirection to a URL.

14. Enter the URL into the Redirect to textbox and click the The exact URL entered above checkbox.

clip_image020

15. Click OK.

16. Open a browser and type http://yourredirectname to test.

No comments:

Post a Comment