UrlRewritingNet | Easy and reliable rewriting of URLs with ASP.NET
kandi X-RAY | UrlRewritingNet Summary
kandi X-RAY | UrlRewritingNet Summary
Easy and reliable rewriting of URLs with ASP.NET
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of UrlRewritingNet
UrlRewritingNet Key Features
UrlRewritingNet Examples and Code Snippets
Community Discussions
Trending Discussions on UrlRewritingNet
QUESTION
We're looking to ditch the old URL rewriting package we're currently using in our asp.net webforms application (UrlRewritingNet - it is out of support and development). In my research I've come across two potential replacements (I think) however I'm unclear if they are truly apples to apples in their essential functionality (as well as our existing functionality).
The first is friendlyUrls, if I add the NuGet package and get it configured, it looks like I can work with it and it will probably do all the redirecting and friendly urls that we need. It looks like it's pretty easy to use and we can code to put some routes in a DB and make it so we don't have to hard code everything into a config file.
The second is URL Rewrite 2.0 for IIS. It seems more like what we're currently using. It appears that everything is specified in the .config file. It also seems pretty involved to create rewrites.
We only have a couple of rewrites that seem that they may not be served easily by friendlyUrls (like http=>https, a 301 redirect from our old domain and a no-www => www) but it may also be I haven't looked into that aspect of friendlyUrls. (edit: Oh, and I guess we may get a request occasionally to go from a friendlyUrl to an outside website i.e. www.oursite.com/there => www.yoursite.com)
My question is, are these essentially the same thing, or am I missing something? Should I be using one, the other or both do and in what instances should I use one over the other? I can't seem to find a clear comparison of what each does/doesn't do for me, especially in comparison to the other.
...ANSWER
Answered 2017-Nov-16 at 14:32@mason Thanks for your comment, you pointed me in a good direction.
FriendlyUrl is just an extension of the routes built in to .Net (adding automatic routing) this will do much of our what our "rewriting" did. I would then use the routes.MapPageRoute to add specific additional page routes (i.e. we would like to get to page x via these additional friendly URLs). Finally, I need some kind of rewriting though if I want to do any external changes (i.e. the old domain to new domain).
QUESTION
My raw page Url is like this
...ANSWER
Answered 2017-Apr-16 at 14:01i think what you mean is custom routing on .NET MVC, you actually could do that using attribute route something like this on your Controller Action Method :
QUESTION
I'm working at mvc.net web application and I'm using urlrewritingNet for route urls.
I want to change some characters of url before urlrewriting reach url.
ex:
user request this url /Prods/1/Medi_lice.aspx
I want this url to be /Prods/1/Medi-lice
before rewriting process.
Thanks
Edit
My question is: I want to change last segment of my url. I want the underscore to be dash
I write HttpModule to work around:
...ANSWER
Answered 2017-Feb-28 at 21:54Try context.RewritePath method
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install UrlRewritingNet
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page