I switched from Intelligencia's UrlRewriter to the new web forms routing in ASP.NET 4.0. I have it working great for basic pages, however, in my e-commerce site, when browsing category pages, I previously used querystrings that were built into my pager control to control paging and now am not sure how to handle this using routing.
I de...
Hi, I need to do some special routing in cake, but can't for the life of me figure it out.
I have a shop controller at /shop, the format of the url will be:
/shop/:category/:sub_category/:product_slug
In the routing I need to send each part of the url to a different action, for example if the url was just /shop/cakes it would go to t...
Hi, all.
I have set up a url mapping that goes like this:
(r'enroll/$', 'enroll')
In my development environment this mapping is used when I visit '/enroll/'.
But in the production environment, the Django application is under '/activity/' and '/activity/enroll/' should be used.
Please tell me how do I get the correct url in both cas...
Hi,
http://mysite.com/songs/company-name/song-name
i want to redirect it to
http://mysite.com/songs/index.php?name=company-name&song=song-name
i read some articles about that mod_rewrite but actually i couldnt understand exactyly, i appreciate if you can help me.
thanks
EDIT: mod rewrite is enabled
...
I'm using custom post types in WordPress 3.0 to manage 'courses' (or seminars, lectures, whatever term you'd prefer to have in mind).
Now for viewing a single 'course', the url structure is;
/course/course-name/
But for multiple courses?
/courses/category/category-name/
Or...
/course-category/category-name/
Or something entirel...
I'm building a web app with custom components. I need a way to route requests to class / methods, is there any standalone java library that can achieve that (in a sexy manner [1]) ?
[1] read : no xml!
...
I have found plenty of great PHP frameworks, but so many of them seem to use rails-like URL routing. Anyone know of a PHP framework which emulates the django model?
...
I have used the Java command url.openStream() many times to retrieve data from the web. However, I don't have any idea what it's doing. Does it go through my browser, does it establish a separate port, or what?
I would like to know how this works so I can determine how the command would play through an internet anonymizer.
If anyone ...
I have an action link in one of my view page
<%=Html.ActionLink("Details", "Details", new { id = Model.Id })%> and redirects me to page which has a url like this http://localhost:1985/Materials/Details/2 instead of this i would like to have my url as http://localhost:1985/Materials/Details/steel material name instead of Id... Is this p...
I am trying to remove Details from http://localhost:1985/Materials/Details/2/Steel but some how my route doesn't seem to work...
Edit:
routes.MapRoute(
"Materials", // <-- Above default
"Materials/{id}/{name}",
new { controller = "Materials", action = "Details", id = "", name = "" }
);
...
I have one page "~/Admin/Teams/Edit.aspx". This page has 2 function "Insert/Edit". I have two routes defined:
routes.MapPageRoute("teams-new",
"team-new/{league}",
"~/Admin/Teams/Edit.aspx");
routes.MapPageRoute("teams-edit",
"team/{te...
Grails, by default, is case-sensitive when mapping URL to controller actions or views.
For instance, www.mywebsite.com/book/list will work BUT www.mywebsite.com/Book/list will return a 404 page.
What can I do (code snippets are welcomed) to make my URL case-insensitive (i.e. www.mywebsite.com/Book/list being a valid url) ?
...
Hi there im having problem with language mappings. The way i want it to work is that language is encoded in the url like /appname/de/mycontroller/whatever
If you go to /appname/mycontroller/action it should check your session and if there is no session pick language based on browser preference and redirect to the language prefixed site....
I have a folder structure like this:
www.mysite.com/About/About.aspx
I have a link in a user control like this:
<a href="~/About/About" id="aboutLink" title="About" runat="server">About</a>
And in my RegisterRoutes() method, I have this:
routes.MapPageRoute("", "About/About/", "~/About/About.aspx");
It works but produces the fol...
Hey,
I'm using codeigniter and want to make my portal a bit more SEO friendly.
I have a controller (articles) which handles every article on my portal.
The URL looks like this:
example.com/articles/category-sub-category/article-name
I'm using mod rewrite module to hide my index.php, and codeigniter routing to hide the controller actio...
I was just looking at analytics for an ASP.NET MVC 1 site running on Mono.
I saw that once in a while users are brought to this URL: /?aspxerrorpath=/UrlRouting.axd
What would cause this?
...
I am doing a return RedirectToAction("Index", "Clients"); from my home controller.... It is fine but my url looks like http://localhost:1115/Clients/Index... How to remove index from url in asp.net mvc? Any suggestion....
My routes,
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resourc...
Hi there,
For my site I have a number of Orders each of which contains a number of Quotes. A quote is always tied to an individual order, so in the quotes controller I add a quote with reference to it's order:
function add($orderId) {
// funtion here
}
And the calling URL looks a bit like
http://www.example.com/quotes/add/1
It...
I'm trying to hook up URL dispatch with Racket (formerly PLT Scheme). I've taken a look at the tutorial and the server documentation. I can't figure out how to route requests to the same servlets.
Specific example:
#lang scheme
(require web-server/servlet)
(require web-server/dispatch)
(provide/contract (start (request? . -> . respon...
My WebApp is part CMS, and when I serve up an HTML page to the user it typically contains relative paths in a.href and img.src attributes.
I currently have them accessed by urls like: ~/get-data.aspx/instance/user/page.html -- where instance indicates the particular instance for the report and "user/page.html" is a path created by an ex...