The text of this article is not in this database — only its details are. The old site it was published on is gone, but the Internet Archive kept a copy: URL Rewriting in ASP.NET using C#
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment
It is the same account you read, post and publish with — and you will come straight back to this page.

Lokesh RavindraPosted Jun 10, 2015, 9:02 AM
In local it is working fine.. but in server I got 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. how to fix it ?
sachindra singhPosted Jun 8, 2015, 7:35 AM
Thanks i Get solution its my mistake thanks
sachindra singhPosted Jun 8, 2015, 7:22 AM
i got 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. error
sachindra singhPosted Jun 8, 2015, 7:21 AM
sir when make a copy of both page gridview and dynamicpage and remane and in web.congif create a <rewrite url="~/sachin/(.+)-(.+).aspx" to="~/myfiles.aspx?MyTitleId=$2"/> and in also change strTitle = "~/sachin/" + strTitle + "-" + strId + ".aspx"; the not working
Lokesh RavindraPosted Jun 6, 2015, 7:38 AM
I'm getting cannot use a leading .. to exit above the top directory error while applying same code to my application. how to fix it ?
Firoz KhanPosted May 8, 2014, 8:58 AM
thanks man, great
Aman MiglaniPosted Jan 21, 2014, 12:25 AM
please check the url when you host your site on server and do re-writeing according to your URL which is showing when it is upload on server Thank you
abc abceditedPosted Apr 22, 2013, 5:38 PMEdited Apr 22, 2013, 5:42 PM
Help me! How to get catergory_id from url: domain.com/catergory-name/product-name.html to show other products same catergory_id?
abc abcPosted Apr 10, 2013, 12:02 PM
Thank you very much!
Guest UserPosted Oct 25, 2012, 3:43 AM
goood idea. specially GenerateUrl method.
P MeditedPosted Oct 23, 2012, 12:08 PMEdited Oct 23, 2012, 12:09 PM
works fine for me locally... not sure about on the server
samidha dokePosted Jul 14, 2012, 1:41 AM
this is not working.. am getting error as "resource can not be found" ..
Jayesh GorePosted May 16, 2012, 5:55 AM
your url rewriting example is not working fine on server. it show error " the resource cannot be found " but working fine in localhost but on server in show error " the resource cannot be found " plz give me the solution.
AntonioeditedPosted Feb 28, 2012, 7:04 AMEdited Feb 28, 2012, 7:05 AM
How can I use the function on multiple pages without having to rewrite the function at all? Thank you, very good article.
irfan irfanPosted Dec 9, 2011, 6:19 AM
your url rewriting example is not working fine on server. it show error " the resource cannot be found " but working fine in localhost but on server in show error " the resource cannot be found " plz give me the solution.