This link has been bookmarked by 195 people . It was first bookmarked on 07 Apr 2007, by someone privately.
-
17 Apr 14
-
17 Dec 13
Jonah HayesThis short article summarizes a few techniques you can take to easily map or reword URLs with ASP.NET, and have the choice to framework the URLs of your program however you want.
-
15 Mar 13
-
Tip/Trick: Url Rewriting with ASP.NET
-
-
05 Nov 12
-
23 Oct 12
-
The most common scenarios where developers want greater flexibility with URLs are:
-
1) Handling cases where you want to restructure the pages within your web application, and you want to ensure that people who have bookmarked old URLs don't break when you move pages around.
-
2) Improving the search relevancy of pages on your site with search engines like Google, Yahoo and Live. Specifically, URL Rewriting can often make it easier to embed common keywords into the URLs of the pages on your sites, which can often increase the chance of someone clicking your link.
-
-
03 Oct 12
-
13 Aug 12
-
06 Jun 12
-
28 Dec 11
-
27 Sep 11
-
21 Aug 11
-
Approach 3: Using an HttpModule to Perform Extension-Less URL Rewriting with IIS7
T
-
-
17 Aug 11
-
28 Jul 11
-
18 Jul 11
-
18 Apr 11
-
07 Apr 11
-
30 Mar 11
-
24 Mar 11
-
03 Feb 11
-
25 Jan 11
-
You can see a sample implementation I created that shows how to implement a Form Control Adapter that works with URLRewriting in my sample here. It works for both the Request.PathInfo and UrlRewriter.Net module approaches I used in Approach 1 and 2 above, and uses the Request.RawUrl property to retrieve the original, un-rewritten, URL to render. With the ISAPIRewrite filter in Approach 4 you can retrieve the Request.ServerVariables["HTTP_X_REWRITE_URL"] value that the ISAPI filter uses to save the original URL instead.
-
-
19 Jan 11
-
20 Aug 10
-
09 Jul 10
-
22 Jun 10
-
05 Jun 10
-
03 May 10
-
29 Mar 10
-
18 Mar 10
-
03 Mar 10
-
19 Feb 10
-
17 Feb 10
Keith RousseauThe rules for Helicon Tech's ISAPI Rewrite use the same syntax as Apache's mod_rew
-
12 Feb 10
-
28 Jan 10
-
27 Jan 10
-
20 Jan 10
-
13 Dec 09
-
11 Dec 09
-
11 Nov 09
-
24 Oct 09
-
16 Oct 09
-
01 Oct 09
-
06 Aug 09
-
30 Jul 09
-
14 Jul 09
-
13 Jul 09
-
18 Jun 09
-
18 May 09
-
14 Apr 09
-
02 Mar 09
-
12 Feb 09
-
03 Feb 09
-
24 Jan 09
-
08 Jan 09
-
30 Dec 08
-
23 Dec 08
-
16 Dec 08
-
08 Dec 08
-
02 Dec 08
-
24 Nov 08
-
23 Nov 08
-
publish cleaner URL end-points
-
dynamically "re-write" URLs
-
restructure the pages within your web application
-
bookmarked old URLs don't break
-
Improving the search relevancy
-
to embed common keywords into the URLs
-
use fully qualified URL's can also in some cases increase your priority in search engine results
-
Using techniques that force referring links to use the same case and URL entrypoint
-
Increasingly this is driving developers to use URL-Rewriting and other SEO (search engine optimization) techniques to optimize sites
-
Request.PathInfo property, which will return the content immediately following the products.aspx portion of the URL
-
HttpContext.RewritePath()
-
Contains
-
Context.RewritePath
-
to declaratively express matching rules within your application's web.config file
-
IIS 5/6 makes it hard to perform URL rewriting on these types of URLs within ISAPI Extensions
-
Instead you need to perform the rewriting earlier in the IIS request pipeline using an ISAPI Filter
-
IIS 7.0 makes handling these types of scenarios super easy
-
You can now have an HttpModule execute anywhere within the IIS request pipeline
-
system.webServer
-
with ASP.NET 2.0, there is a cleaner trick that you can use to rewrite the "action" attribute on the <form> control
-
ASP.NET 2.0 Control Adapter extensibility architecture
-
just add a .browser file to your /app_browsers folder that registers a Control Adapter class to use to output the new "action" attribute:
-
make sure you root qualify CSS and Image references ("/style.css" instead of "style.css")
-
For ASP.NET controls, you can also use the ~ syntax to reference files from the root of the application (for example: <asp:image imageurl="~/images/logo.jpg" runat="server"/>
-
-
06 Nov 08
-
24 Oct 08
-
29 Sep 08
-
17 Sep 08
-
09 Sep 08
-
08 Sep 08
-
04 Sep 08
-
31 Aug 08
-
28 Aug 08
-
26 Aug 08
-
22 Aug 08
-
29 Jul 08
-
25 Jul 08
-
22 Jul 08
-
16 Jul 08
-
02 Jul 08
-
02 Jun 08
-
23 May 08
-
03 May 08
-
02 May 08
-
17 Apr 08
-
06 Apr 08
-
17 Mar 08
Engelbert Tejedarelated:gls*logparser authentication mode="Windows"
childof:http://blogs.orcsweb.com/steve/archive/2007/03.aspxcomputers-web-windows computers-web-windows-iis computers-windows computers-lang computers-web-programming web-design
-
David Pascuale most common scenarios where developers want greater flexibility with URLs
-
12 Mar 08
-
08 Mar 08
-
04 Mar 08
-
21 Feb 08
-
05 Feb 08
-
30 Nov 07
-
05 Nov 07
-
02 Nov 07
-
22 Oct 07
-
19 Oct 07
-
16 Oct 07
-
13 Oct 07
-
09 Oct 07
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.