<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://weblogs.asp.net/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>Boosting search engine results with URL rewriting</title><link>http://weblogs.asp.net/fmarguerie/archive/2003/12/24/45712.aspx</link><description>I don't know whether you noticed this trend that consists in masquerading URLs such as http://mysite.com/Article.aspx?id=123 so they appear like this: http://mysite.com/Articles/123.aspx It's done here on weblogs.asp.net for example. Just look at this</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>re: Boosting search engine results with URL rewriting</title><link>http://weblogs.asp.net/fmarguerie/archive/2003/12/24/45712.aspx#122397</link><pubDate>Wed, 28 Apr 2004 21:06:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:122397</guid><dc:creator>Fabrice</dc:creator><author>Fabrice</author><description>Sounds strange. Did you try to trace what's happening. You should probably log the values of context.Request.Path and strNewPath to get an idea about what's wrong.&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=122397" width="1" height="1"&gt;</description></item><item><title>re: Boosting search engine results with URL rewriting</title><link>http://weblogs.asp.net/fmarguerie/archive/2003/12/24/45712.aspx#121957</link><pubDate>Wed, 28 Apr 2004 10:47:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:121957</guid><dc:creator>sandeep pandit</dc:creator><author>sandeep pandit</author><description>hello sir,&lt;br&gt;     i read your article on URL rewriting in asp.net on msdn.i have also used the same in my &lt;br&gt;&lt;br&gt;project.URL rewriting is working fine in our LAN and on our configured IP but problem is &lt;br&gt;&lt;br&gt;that when we host our site to some ISP its not working and giving error like this &amp;quot;THE PAGE &lt;br&gt;&lt;br&gt;CAN NOT BE FOUND&amp;quot; its really emberrasing because i am not able to find out the proble any &lt;br&gt;&lt;br&gt;where &lt;br&gt;i am seding the code which i am using &lt;br&gt;Sample code&lt;br&gt;==================&lt;br&gt; Sub Application_BeginRequest(ByVal sender As Object, ByVal e As EventArgs)&lt;br&gt;        ' Fires at the beginning of each request&lt;br&gt;        Dim context As HttpContext&lt;br&gt;        context = HttpContext.Current()&lt;br&gt;        Dim strOldPath As String&lt;br&gt;        strOldPath = Trim(context.Request.Path.ToLower())&lt;br&gt;         Dim strToken As String&lt;br&gt;        strToken = &amp;quot;accomodationdetail&amp;quot;&lt;br&gt;        Dim intI As Integer&lt;br&gt;        intI = strOldPath.IndexOf(strToken)&lt;br&gt;        Dim intLen As Integer&lt;br&gt;        intLen = strToken.Length&lt;br&gt;        Dim intJ As Integer&lt;br&gt;        If intI &amp;lt;&amp;gt; -1 Then&lt;br&gt;            intJ = strOldPath.IndexOf(&amp;quot;.aspx&amp;quot;)&lt;br&gt;            If intJ &amp;lt;&amp;gt; -1 Then&lt;br&gt;                Dim strDetail As String&lt;br&gt;                strDetail = strOldPath.Substring(intI + intLen, intJ - (intI + intLen))&lt;br&gt;                Dim strNewPath As String&lt;br&gt;                strNewPath = strOldPath.Replace(strToken + strDetail + &amp;quot;.aspx&amp;quot;, &lt;br&gt;&lt;br&gt;&amp;quot;AccomodationDetail.aspx?intID=&amp;quot; &amp;amp; strDetail)&lt;br&gt;                context.RewritePath(strNewPath)&lt;br&gt;            End If&lt;br&gt;        End If&lt;br&gt;end sub        &lt;br&gt;============================&lt;br&gt;&lt;br&gt;but when i called some page like this&lt;br&gt;&lt;br&gt;    original request=/accomodation/accomodationdetail22.aspx&lt;br&gt;    after rewrite=/accomodation/accomodationdetail.aspx?id=22&lt;br&gt; above request is doing fine in our lan and on our  configured IP&lt;br&gt; but not working on ISP where we host our site &lt;br&gt;and giving error &amp;quot;THE PAGE CAN NOT BE FOUND&amp;quot; &lt;br&gt;i think you got my problem&lt;br&gt;please help me as soon as possible &lt;br&gt;thanks &lt;br&gt;regards&lt;br&gt;sandeep&lt;br&gt;MY MAIL id IS spandit@rsbsystems.com&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=121957" width="1" height="1"&gt;</description></item><item><title>re: Boosting search engine results with URL rewriting</title><link>http://weblogs.asp.net/fmarguerie/archive/2003/12/24/45712.aspx#46555</link><pubDate>Tue, 30 Dec 2003 09:46:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:46555</guid><dc:creator>Fabrice</dc:creator><author>Fabrice</author><description>Hey Jason! I had read your post, but I wasn't able to find it back. Now I can link to it :-)&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=46555" width="1" height="1"&gt;</description></item><item><title>re: Boosting search engine results with URL rewriting</title><link>http://weblogs.asp.net/fmarguerie/archive/2003/12/24/45712.aspx#45927</link><pubDate>Fri, 26 Dec 2003 03:45:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:45927</guid><dc:creator>Jason Salas</dc:creator><author>Jason Salas</author><description>Hello,&lt;br&gt;&lt;br&gt;Thought I'd comment on this.&lt;br&gt;&lt;br&gt;I blogged on how this is done at: &lt;a target="_new" href="http://weblogs.asp.net/jasonsalas/archive/2003/12/14/43404.aspx"&gt;http://weblogs.asp.net/jasonsalas/archive/2003/12/14/43404.aspx&lt;/a&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=45927" width="1" height="1"&gt;</description></item><item><title>re: Boosting search engine results with URL rewriting</title><link>http://weblogs.asp.net/fmarguerie/archive/2003/12/24/45712.aspx#45725</link><pubDate>Wed, 24 Dec 2003 14:11:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:45725</guid><dc:creator>Fabrice</dc:creator><author>Fabrice</author><description>Nice use of HTTP handlers!&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=45725" width="1" height="1"&gt;</description></item><item><title>re: Boosting search engine results with URL rewriting</title><link>http://weblogs.asp.net/fmarguerie/archive/2003/12/24/45712.aspx#45724</link><pubDate>Wed, 24 Dec 2003 13:51:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:45724</guid><dc:creator>M. Keith Warren</dc:creator><author>M. Keith Warren</author><description>Not really related to Google but I am using handlers for a file extension hack to produce excel files from aspx. I generate a data grid and render is alone to the client as an excel app type. Problem is the client gets the file as an aspx and this is trouble if they save to disk. Solution: create a handler for xls and treat is just the same as your call to aspx; I can have querystring params and all and when they save to disk it saves as an xls file.&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=45724" width="1" height="1"&gt;</description></item></channel></rss>