<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Friendly URLs in ASP.NET using URLRewriter.NET</title>
	<atom:link href="http://sourcecodebean.com/archives/friendly-urls-in-aspnet-using-urlrewriternet/243/feed" rel="self" type="application/rss+xml" />
	<link>http://sourcecodebean.com/archives/friendly-urls-in-aspnet-using-urlrewriternet/243</link>
	<description>thoughts and ideas from a .net developer</description>
	<lastBuildDate>Sat, 26 May 2012 08:21:51 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Andres</title>
		<link>http://sourcecodebean.com/archives/friendly-urls-in-aspnet-using-urlrewriternet/243/comment-page-1#comment-8331</link>
		<dc:creator>Andres</dc:creator>
		<pubDate>Fri, 11 Mar 2011 15:45:41 +0000</pubDate>
		<guid isPermaLink="false">http://sourcecodebean.com/?p=243#comment-8331</guid>
		<description>hi, where do you place the rewriter tags??
thanks</description>
		<content:encoded><![CDATA[<p>hi, where do you place the rewriter tags??<br />
thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MOHSEN</title>
		<link>http://sourcecodebean.com/archives/friendly-urls-in-aspnet-using-urlrewriternet/243/comment-page-1#comment-4497</link>
		<dc:creator>MOHSEN</dc:creator>
		<pubDate>Tue, 03 Aug 2010 13:50:03 +0000</pubDate>
		<guid isPermaLink="false">http://sourcecodebean.com/?p=243#comment-4497</guid>
		<description>HIIIIIII 
How Are You

How this Code Works on IIS 7
AND Visual Studio 2008 
Target FrameWork 2.0

Because  It Gave Me Error 
Resource Not Found

and Thank You In Advance</description>
		<content:encoded><![CDATA[<p>HIIIIIII<br />
How Are You</p>
<p>How this Code Works on IIS 7<br />
AND Visual Studio 2008<br />
Target FrameWork 2.0</p>
<p>Because  It Gave Me Error<br />
Resource Not Found</p>
<p>and Thank You In Advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: oanh tong ngoc</title>
		<link>http://sourcecodebean.com/archives/friendly-urls-in-aspnet-using-urlrewriternet/243/comment-page-1#comment-4090</link>
		<dc:creator>oanh tong ngoc</dc:creator>
		<pubDate>Tue, 08 Jun 2010 07:59:45 +0000</pubDate>
		<guid isPermaLink="false">http://sourcecodebean.com/?p=243#comment-4090</guid>
		<description>:)

It&#039;s usefull but
could U give everyone&#039;s an example with a project source code.
Thanks</description>
		<content:encoded><![CDATA[<p> <img src='http://sourcecodebean.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>It&#8217;s usefull but<br />
could U give everyone&#8217;s an example with a project source code.<br />
Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter</title>
		<link>http://sourcecodebean.com/archives/friendly-urls-in-aspnet-using-urlrewriternet/243/comment-page-1#comment-4031</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Tue, 01 Jun 2010 19:21:43 +0000</pubDate>
		<guid isPermaLink="false">http://sourcecodebean.com/?p=243#comment-4031</guid>
		<description>Hi Sohaib,

It seems like the rewrite module isn&#039;t loaded by IIS. Have you uploaded the UrlRewriter dlls and made the changes to web.config on the server? Are you using the same version of IIS on your local dev machine as on the server? If your server is running IIS7 the web.config has changed and you cannot use the example I pasted in this post. 


/Peter</description>
		<content:encoded><![CDATA[<p>Hi Sohaib,</p>
<p>It seems like the rewrite module isn&#8217;t loaded by IIS. Have you uploaded the UrlRewriter dlls and made the changes to web.config on the server? Are you using the same version of IIS on your local dev machine as on the server? If your server is running IIS7 the web.config has changed and you cannot use the example I pasted in this post. </p>
<p>/Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sohaib</title>
		<link>http://sourcecodebean.com/archives/friendly-urls-in-aspnet-using-urlrewriternet/243/comment-page-1#comment-4026</link>
		<dc:creator>sohaib</dc:creator>
		<pubDate>Tue, 01 Jun 2010 16:43:55 +0000</pubDate>
		<guid isPermaLink="false">http://sourcecodebean.com/?p=243#comment-4026</guid>
		<description>hi,
    i wrote this 

for this output   http:~/cheapflightsto-accra-7-H.aspx

its working fine localy in Asp.net and in IIS as well
but when i upload, it gives error i.e.
HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable.  Please review the following URL and make sure that it is spelled correctly. 

Requested URL: /cheapflightsto-accra-7-H.aspx</description>
		<content:encoded><![CDATA[<p>hi,<br />
    i wrote this </p>
<p>for this output   http:~/cheapflightsto-accra-7-H.aspx</p>
<p>its working fine localy in Asp.net and in IIS as well<br />
but when i upload, it gives error i.e.<br />
HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable.  Please review the following URL and make sure that it is spelled correctly. </p>
<p>Requested URL: /cheapflightsto-accra-7-H.aspx</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter</title>
		<link>http://sourcecodebean.com/archives/friendly-urls-in-aspnet-using-urlrewriternet/243/comment-page-1#comment-3501</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Fri, 16 Apr 2010 08:56:09 +0000</pubDate>
		<guid isPermaLink="false">http://sourcecodebean.com/?p=243#comment-3501</guid>
		<description>In order to create that rewrite you need to create some kind of mapping between the name &quot;stratford-upon-avon-coach-holiday&quot; and CountryId=104, RegionId=155 and SubRegionId=566, which will be a bit more complicated. An easier solution would be to create an URL like:
&lt;br /&gt;
/104-155-566/stratford-upon-avon-coach-holidays.aspx
&lt;br /&gt;
Not as nice as the url you suggested, but the url will contain the information you need to do the rewrite. With this URL you can create a rule like:
&lt;br /&gt;&lt;br /&gt;
&lt;blockquote&gt;
  rewrite url=&quot;~/([0-9]+)-([0-9]+)-([0-9]+)/(.+)aspx&quot; to=&quot;~/travelguide_details.aspx?CountryId=$1&amp;RegionId=$2&amp;SubRegionId=$3&quot;/
&lt;/blockquote&gt;

&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;
I hope this helps!</description>
		<content:encoded><![CDATA[<p>In order to create that rewrite you need to create some kind of mapping between the name &#8220;stratford-upon-avon-coach-holiday&#8221; and CountryId=104, RegionId=155 and SubRegionId=566, which will be a bit more complicated. An easier solution would be to create an URL like:<br />
<br />
/104-155-566/stratford-upon-avon-coach-holidays.aspx<br />
<br />
Not as nice as the url you suggested, but the url will contain the information you need to do the rewrite. With this URL you can create a rule like:</p>
<blockquote><p>
  rewrite url=&#8221;~/([0-9]+)-([0-9]+)-([0-9]+)/(.+)aspx&#8221; to=&#8221;~/travelguide_details.aspx?CountryId=$1&#038;RegionId=$2&#038;SubRegionId=$3&#8243;/
</p></blockquote>
<p>
I hope this helps!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SRA</title>
		<link>http://sourcecodebean.com/archives/friendly-urls-in-aspnet-using-urlrewriternet/243/comment-page-1#comment-3321</link>
		<dc:creator>SRA</dc:creator>
		<pubDate>Wed, 24 Mar 2010 14:42:02 +0000</pubDate>
		<guid isPermaLink="false">http://sourcecodebean.com/?p=243#comment-3321</guid>
		<description>hi,

i have a url like

 &quot;/travelguide_details.aspx?CountryId=104&amp;RegionId=155&amp;SubRegionId=566&quot; 

and this  should be redirected to the url like 

/stratford-upon-avon-coach-holidays.aspx

 can you please help me how to write the rule for this type of links and the id&#039;s and destination region name(stratford-upon-avon) are dynamic.</description>
		<content:encoded><![CDATA[<p>hi,</p>
<p>i have a url like</p>
<p> &#8220;/travelguide_details.aspx?CountryId=104&amp;RegionId=155&amp;SubRegionId=566&#8243; </p>
<p>and this  should be redirected to the url like </p>
<p>/stratford-upon-avon-coach-holidays.aspx</p>
<p> can you please help me how to write the rule for this type of links and the id&#8217;s and destination region name(stratford-upon-avon) are dynamic.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter</title>
		<link>http://sourcecodebean.com/archives/friendly-urls-in-aspnet-using-urlrewriternet/243/comment-page-1#comment-2335</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Sat, 12 Dec 2009 12:25:28 +0000</pubDate>
		<guid isPermaLink="false">http://sourcecodebean.com/?p=243#comment-2335</guid>
		<description>Have you modified your web.config on your hosting web-server? You need to add references to URLRewriter as described in the article. Also, I assume that locally you are using the WebDev server that is built into Visual Studio? This webserver behaves slightly different from IIS, in WebDev all requests gets routed to the ASP.NET runtime, while in IIS this is not the case. I think you can find instructions for how to configure this for IIS 6 in the URLRewriter documentation.</description>
		<content:encoded><![CDATA[<p>Have you modified your web.config on your hosting web-server? You need to add references to URLRewriter as described in the article. Also, I assume that locally you are using the WebDev server that is built into Visual Studio? This webserver behaves slightly different from IIS, in WebDev all requests gets routed to the ASP.NET runtime, while in IIS this is not the case. I think you can find instructions for how to configure this for IIS 6 in the URLRewriter documentation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tada</title>
		<link>http://sourcecodebean.com/archives/friendly-urls-in-aspnet-using-urlrewriternet/243/comment-page-1#comment-2294</link>
		<dc:creator>tada</dc:creator>
		<pubDate>Wed, 09 Dec 2009 11:50:31 +0000</pubDate>
		<guid isPermaLink="false">http://sourcecodebean.com/?p=243#comment-2294</guid>
		<description>Hi Peter,

I got my MSSQL database running on the web server of the hosting company. I tried to implement what you said on the database in my laptop - it worked! 

However, the feature does not work on the actual website even after I uploaded the urlrewriter.dll and another xml file into the bin folder of the hosting server. I am suspecting that it might be due to the fact that I had &quot;add reference&quot; to the urlrewriter.dll in my local machine, but not the one at the hosting server. Is there anyway to &quot;add reference&quot; for the database hosted by hosting company&#039;s server? Thanks.</description>
		<content:encoded><![CDATA[<p>Hi Peter,</p>
<p>I got my MSSQL database running on the web server of the hosting company. I tried to implement what you said on the database in my laptop &#8211; it worked! </p>
<p>However, the feature does not work on the actual website even after I uploaded the urlrewriter.dll and another xml file into the bin folder of the hosting server. I am suspecting that it might be due to the fact that I had &#8220;add reference&#8221; to the urlrewriter.dll in my local machine, but not the one at the hosting server. Is there anyway to &#8220;add reference&#8221; for the database hosted by hosting company&#8217;s server? Thanks.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced

Served from: sourcecodebean.com @ 2012-05-30 06:20:53 -->
