Friendly Urls

Posted By WithaG Fri 2 May 2014
Add to Favorites0
Author Message
WithaG
 Posted Fri 2 May 2014
Supreme Being

Supreme Being - (6,449 reputation)Supreme Being - (6,449 reputation)Supreme Being - (6,449 reputation)Supreme Being - (6,449 reputation)Supreme Being - (6,449 reputation)Supreme Being - (6,449 reputation)Supreme Being - (6,449 reputation)Supreme Being - (6,449 reputation)Supreme Being - (6,449 reputation)

Group: Forum Members
Last Active: Mon 19 Nov 2018
Posts: 12, Visits: 46
Quick question, how are the friendly urls achieved in Kartris 2.5? I'm new to .net routing as we currently use Isapi ReWrite on our own sites but I can't see anything in the web.config or global.asax that matches up with the little I know about .NET Friendly Urls

Thanks
Paul Marked As Answer
 Posted Fri 2 May 2014
große Käse

große Käse - (449,490 reputation)große Käse - (449,490 reputation)große Käse - (449,490 reputation)große Käse - (449,490 reputation)große Käse - (449,490 reputation)große Käse - (449,490 reputation)große Käse - (449,490 reputation)große Käse - (449,490 reputation)große Käse - (449,490 reputation)

Group: Administrators
Last Active: Fri 15 Sep 2023
Posts: 806, Visits: 2,737
Check the code in

App_code/Providers/SiteMapProvider.vb

This handles most reading and formatting of friendly URLs for the different page types.

There is also a little rewriting going on in the global.asax, for some special cases:

/admin -> /admin/Default.aspx (avoids an error if /admin used)

Also the callback page... normally you'd set a payment gateway to call back like this:

/Callback.aspx?g=Paypal

However, some payment systems which POST back don't like the querystring in the action URL, so you can instead use this format:

/callback-paypal.aspx

And it will map it to the parametrized callback URL. This way the callback page knows which gateway is calling it, but the URL doesn't look like it is passing GET information.

You can still use the url rewrite functionality of .net too for your own purposes. We've done this ourselves when we've built a Kartris site for a customer to replace another site. In that case, we can get a full list of URLs and then map them to the new Kartris URL equivalent, or at least do this for the most important products and categories.


--
If my post solves your issue, can you 'Mark as Answer' so it's easier for other users to find in future.

If you would like to be informed of new features, new releases, developments and occasional special bonuses, please sign up to our mailing list: http://bit.ly/19sKMZb

Similar Topics

Expand / Collapse

Reading This Topic

Expand / Collapse

Back To Top