<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://v900u039rux.maximumasp.com/Web/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>URL Rewriting (Part 3)</title><link>http://v900u039rux.maximumasp.com/Web/blogs/raheel/archive/2007/10/03/url-rewriting-part-3.aspx</link><description>This is offcourse linked to the last blog for URL Rewritting, some technical bits to be shared, a little enhancement to the previous technique to URL Rewriting and also an issue which could be a limitation (or more likely that a I&amp;#39;m unable to findout</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP2 (Build: 20611.960)</generator><item><title>re: URL Rewriting (Part 3)</title><link>http://v900u039rux.maximumasp.com/Web/blogs/raheel/archive/2007/10/03/url-rewriting-part-3.aspx#80</link><pubDate>Thu, 18 Oct 2007 21:59:48 GMT</pubDate><guid isPermaLink="false">3790bee0-d05b-4b84-a272-3ed522a0473a:80</guid><dc:creator>Raheel Hussain</dc:creator><description>&lt;p&gt;thanks, &amp;nbsp;I will definetely look into it.&lt;/p&gt;
&lt;img src="http://v900u039rux.maximumasp.com/Web/aggbug.aspx?PostID=80" width="1" height="1"&gt;</description></item><item><title>re: URL Rewriting (Part 3)</title><link>http://v900u039rux.maximumasp.com/Web/blogs/raheel/archive/2007/10/03/url-rewriting-part-3.aspx#77</link><pubDate>Tue, 09 Oct 2007 19:31:59 GMT</pubDate><guid isPermaLink="false">3790bee0-d05b-4b84-a272-3ed522a0473a:77</guid><dc:creator>LanceUSA</dc:creator><description>&lt;p&gt;One other thing you might be interested in...I didn't like the fact that urls thought the root was the rewritten url...to solve this is quite easy in javascript.&lt;/p&gt;
&lt;p&gt;If you're using asp.net ajax its as simply as doing this in the client pageLoad function&lt;/p&gt;
&lt;p&gt;for(var i = 0; i &amp;lt; document.links.length; i++) {&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; document.links&lt;img src="http://dnfug.com/Web/emoticons/emotion-55.gif" alt="Idea" /&gt;.href = document.links&lt;img src="http://dnfug.com/Web/emoticons/emotion-55.gif" alt="Idea" /&gt;.href.replace(/regex/, &amp;quot;&amp;quot;);&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;Now all my hyperlinks point to my application root!&lt;/p&gt;
&lt;p&gt;I noticed you still need the actionform from scottgu's blog to make sure the action retains the rewritten url.&lt;/p&gt;
&lt;p&gt;Now I've got a complete urlrewritting setup!&lt;/p&gt;
&lt;p&gt;Nice!&lt;/p&gt;
&lt;img src="http://v900u039rux.maximumasp.com/Web/aggbug.aspx?PostID=77" width="1" height="1"&gt;</description></item><item><title>re: URL Rewriting (Part 3)</title><link>http://v900u039rux.maximumasp.com/Web/blogs/raheel/archive/2007/10/03/url-rewriting-part-3.aspx#76</link><pubDate>Tue, 09 Oct 2007 15:46:54 GMT</pubDate><guid isPermaLink="false">3790bee0-d05b-4b84-a272-3ed522a0473a:76</guid><dc:creator>LanceUSA</dc:creator><description>&lt;p&gt;I have devised a solution for your issue.&lt;/p&gt;
&lt;p&gt;Use regular expessions in the Global.asax Application_BeginRequest to Rewrite any urls that come though to point to the root. &amp;nbsp;I'm still testing it out, but thought you might be interested.&lt;/p&gt;
&lt;p&gt;One caveat I found was with rewriting the paths of webservices. &amp;nbsp;I eventually found a solution here: &lt;a rel="nofollow" target="_new" href="http://forums.asp.net/t/1113541.aspx"&gt;forums.asp.net/.../1113541.aspx&lt;/a&gt;. &amp;nbsp;Essentially you just treat the context.RewritePath differently for webservices based on the code found at that url.&lt;/p&gt;
&lt;p&gt;The good side of this is not my AJAX Update Panels work with some url rewritting logic. &amp;nbsp;Before I was using urlrewrittingnet and was getting errors in any postback ussued within an update panel.&lt;/p&gt;
&lt;p&gt;Thanks for writing the article to ge me started!&lt;/p&gt;
&lt;img src="http://v900u039rux.maximumasp.com/Web/aggbug.aspx?PostID=76" width="1" height="1"&gt;</description></item></channel></rss>