Geeks With Blogs

News


Search this Blog via
Google Search This Blog


Kit Ong's News Pick Of The Day All things .NET, SharePoint and Latest Technology News

You can use URL Rewrite to generate friendly URLs for search engines or simply to redirect a user to a certain page on your site.

In IIS7.5 (and also applicable to IIS7) you can achieve this by installing the URL Rewrite Module, the download can be obtained from www.iis.net/extensions.

 

Steps to set your start homepage e.g. http://localhost/ to point to http://localhost/mynewcustomhomepage.aspx

 

1. Add a new rewrite map via "View Rewrite Maps..." -> "Add Rewrite Map..."
- Give your new mapping entry any name and enter Original value as / and the new value as mynewcustomhomepage.aspx

2. Add a new rule, selecting the template "Rule with rewrite map", select OK then choose rule action as Rewrite and the rewrite map as the one entered in step 1 above.

3. Click OK and now when you navigate to http://localhost you will be directed to http://localhost/mynewcustomhomepage.aspx

 

The other useful rule is the User friendly URL template. This allows you to map URL with querystrings to absolute paths e.g. http://www.example.com/default.aspx?a=apple -> http://www.example.com/a/apple/

The "Create corresponding redirect rule" is for specifying whether or not you want users to be able to use the rule to access your absolute path by entering querystring (internal URL) or only by entering absolute paths.

 

Posted on Sunday, April 19, 2009 11:14 AM IIS , IIS7.5 , Win7 , Windows 7 , Rewrite | Back to top


Comments on this post: URL Rewrite Module in IIS7.5 for setting default start homepage

# re: URL Rewrite Module in IIS7.5 for setting default start homepage
Requesting Gravatar...
Note: you can also set the default document in IIS7/IIS7.5 by clicking on the 'default document' icon there in IIS Manager.
Left by Bill Staples on Apr 20, 2009 3:21 PM

# re: URL Rewrite Module in IIS7.5 for setting default start homepage
Requesting Gravatar...
Thanks Bill! That's a much easier way of setting default page than installing URL rewrite module.
Left by Kit on Apr 20, 2009 8:16 PM

# re: URL Rewrite Module in IIS7.5 for setting default start homepage
Requesting Gravatar...
replica Louis Vuitton handbags is attractive in outer appearance and exquisite in inner side. There are flat handles that are adjustable, a removable padded shoulder strap, an address holder which can be stamped with baby or mother’s initials, and a key ring holder. In addition, compared with the traditional diaper bag, lv handbag has more functions, such as a change purse, a board which could print the address of the holders by hot-stamping and the designer adds an extra band on both sides, which could save labor when you carry Louis Vuitton bag on sale




Left by hehe on Aug 03, 2010 11:22 PM

# re: URL Rewrite Module in IIS7.5 for setting default start homepage
Requesting Gravatar...
An easier way method is mentioned and thanks to that poster too but since I'm new to this I think installing the URL Rewrite Module will be more detail oriented for me. Thanks for the helpful post.
Left by The Moorings real estate on Jan 07, 2011 9:56 PM

# re: URL Rewrite Module in IIS7.5 for setting default start homepage
Requesting Gravatar...
This post helps us to clarify a major concept of URL rewriting. Now we are able to write any URL in a better way. Thanks for this info.
cherokee county herald
Left by cherokee county herald on Mar 23, 2011 7:40 PM

# re: URL Rewrite Module in IIS7.5 for setting default start homepage
Requesting Gravatar...
Fantastic information. I was extremely impressed keep publishing this type of post in the future too. I really appreciate the author.
trade forex
Left by Trade Forex on Apr 11, 2011 3:16 AM

# re: URL Rewrite Module in IIS7.5 for setting default start homepage
Requesting Gravatar...
I remember just trying this once but selecting the templates and choose rule action was a bit confusing for me and working on the querystrings a bit challenging. The post mentions the right steps. Outdoor kitchens | jacuzzi hot tub
Left by Debbi on Apr 17, 2011 3:55 PM

# re: URL Rewrite Module in IIS7.5 for setting default start homepage
Requesting Gravatar...
URL rewrite is a software that modify the site URL.It is used to provide short link to websites.The demo your post here about rewrite test is very helpful for me.
Craigslist Dayton
Left by Craigslist Dayton on Apr 27, 2011 6:50 PM

# re: URL Rewrite Module in IIS7.5 for setting default start homepage
Requesting Gravatar...
Well This post remind my old days when I was just started and write my essay for me myself these things as I was new one but now I fully understand this stuff and must appreciate how positive you write.
Left by Larah on May 24, 2011 10:58 PM

# re: URL Rewrite Module in IIS7.5 for setting default start homepage
Requesting Gravatar...
I could remember the only time when I was assigned to do some
essay writing I was getting confused with the whole desktop thing itself.
Left by mandy on Jun 15, 2011 2:44 AM

# re: URL Rewrite Module in IIS7.5 for setting default start homepage
Requesting Gravatar...
i am impressed from this post....the person who create this post he is a great human..thanks for shared this with us.i found this informative and interesting blog so i think so its very useful and knowledge able
entrenamiento personal
Left by entrenis on Jul 13, 2011 11:48 PM

# re: URL Rewrite Module in IIS7.5 for setting default start homepage
Requesting Gravatar...
highly information, very nice and very amazing...hehehe
screen protectors for ipad
ipad screen protector
Left by papa johns coupons on Jul 21, 2011 8:28 PM

# thanks for nice info
Requesting Gravatar...
This is really my very first time here, great looking blog. I discovered so many interesting things inside your blog especially its discussion.
From all the remarks in your articles, it appears such as this is often a very popular website. Keep up the truly amazing work.
Long Island School for the Gifted

Left by Long Island School for the Gifte on Jan 04, 2012 11:05 PM

# re: URL Rewrite Module in IIS7.5 for setting default start homepage
Requesting Gravatar...
It would be great if users could create groups and invite other people to be in their group, making it easy for users to see blogs articles written by other people in their group. The idea behind this is our company wants a developers blog, but don't want to host it ourselves. Thanks for sharing.
Regards,
Chandler Real Estate
Left by santa on Feb 06, 2012 6:47 PM

# re: URL Rewrite Module in IIS7.5 for setting default start homepage
Requesting Gravatar...
This homepage defaults to a Microsoft or Mozilla homepage in Internet Explorer or Firefox. Computer manufacturers usually have a homepage programmed into the configurations, but you can easily override it. In the option properties of the web browser, you can quickly change the homepage to your favorite website. Thanks a lot.
Regards,
makita cordless chainsaw
Left by Sreeeeeeeeeeeeeeeee on Feb 06, 2012 11:28 PM

# GOOD BLOG
Requesting Gravatar...
I'm glad I finally got here, found some great sources in this blog.Help With Essay Dissertation Proposal Writing

Left by brunoberk on Apr 03, 2012 7:28 PM

# re: URL Rewrite Module in IIS7.5 for setting default start homepage
Requesting Gravatar...
The concept of your blog is very fresh i definitely sure the visitors who visit your will like your content and pointers.
do my biology research paper | economics research paper
Left by Black Heart on May 15, 2012 6:37 PM

# re: URL Rewrite Module in IIS7.5 for setting default start homepage
Requesting Gravatar...
This tutorial somehow gives us the relief especially those beginners like us. Botox Montreal
Left by melanie on Aug 30, 2012 4:46 AM

# re: URL Rewrite Module in IIS7.5 for setting default start homepage
Requesting Gravatar...
This post was really help full to me as i was looking for url rewrite.
Regards
air conditioner gippsland</br>
fujitsu split system
Left by Koolen on Sep 06, 2012 9:26 PM

# re: URL Rewrite Module in IIS7.5 for setting default start homepage
Requesting Gravatar...
It is a pleasant, to express the heart and clarity in this context, the content can be easily seen.
Left by amy on Oct 29, 2012 4:56 AM

# re: URL Rewrite Module in IIS7.5 for setting default start homepage
Requesting Gravatar...
Excellent posting. Undoubtedly you are an expert when it comes to this writing.
Shop Beats By Dre Sale
Beats By Dre Sale UK
Left by Shop Beats By Dre Sale on Oct 29, 2012 5:00 AM

# ticket broker training
Requesting Gravatar...
“Congratulations Admin! Thank you so much for taking the time to share this exciting information.”

Read More
Left by theticketbrokerguide on Feb 26, 2013 5:42 PM

# re: URL Rewrite Module in IIS7.5 for setting default start homepage
Requesting Gravatar...
The visitors and readers can easily Understand the concept.I Efforts must appreciate you posting these on information.
Custom Peptides
Custom Peptide Synthesis
Left by Joy on Nov 10, 2013 10:08 PM

# re: URL Rewrite Module in IIS7.5 for setting default start homepage
Requesting Gravatar...
excellent information. Thanks
http://pages.videotron.com/varices/varice.htm
Left by Varices Montreal on May 08, 2015 3:19 PM

# re: URL Rewrite Module in IIS7.5 for setting default start homepage
Requesting Gravatar...
We have actually discussed clearly about Musically App Login steps. Musically Login Along with that, we have additionally provided solutions for all the problems.
Left by fender on Apr 09, 2018 5:38 PM

Your comment:
 (will show your gravatar)


Copyright © Kit Ong | Powered by: GeeksWithBlogs.net