Questions tagged [url-mapping]

A framework's URL mapping facility is the mechanism by which the framework interprets URLs.

The frameworks match the provided URLs against pre-determined patterns using regular expressions, or use URL rewriting to translate the provided URL into one that the underlying engine will recognize. Another technique is that of graph traversal, where a URL is decomposed in steps that traverse an object graph (of models and views).

A URL mapping system that uses pattern matching or URL rewriting allows more "SEO friendly URLs" to be used, increasing the simplicity of the site and allowing for better indexing by search engines. This makes the URL easier for people to read and hand write, and provides search engines with better information about the structural layout of the site. A graph traversal approach also tends to result in the creation of SEO friendly URLs.

363 questions
2
votes
1 answer

Spring application not mapping in Tomcat

I'm convinced I have something setup wrong somewhere but I can't figure out where as I have tried following multiple tutorials and solution (viralpatel.net, stackoverlow question, another stackoverflow question) but I cannot deploy a simple…
jonnie
  • 12,260
  • 16
  • 54
  • 91
2
votes
3 answers

How to write a RESTful URL path regex in GAE/Python for n parameters?

Currently I have three URL paths that map to ServiceHandler. How do I combine the three into one neat regex that can pass n number of arguments to ServiceHandler? (r'/s/([^/]*)', ServiceHandler), (r'/s/([^/]*)/([^/]*)',…
user111677
  • 951
  • 1
  • 7
  • 9
2
votes
2 answers

Why action mapping "*_*" works just like "*"?

There are two actions and the *_* is in front of **(it doesn't matter at all that the default namespace does its work after specific namespace(unless the specific namespace extends it))
fairjm
  • 1,115
  • 12
  • 26
2
votes
1 answer

How to create custom url in Yii

Possible Duplicate: How to make user profile link like facebook for my web page How do i manage custom url for user profile like www.exampl.com/brito insted of www.exampl.com/user/profile/id/22 www.exampl.com/jhon insted of …
saas
  • 35
  • 1
  • 4
2
votes
1 answer

python url mapping syntax

I am writing a python program for google appengine using jinja2 as my template engine. I would like to have a single handler for a multitude of posts and some of them having pretty different URLs but all having the same base. Is is possible for me…
clifgray
  • 4,313
  • 11
  • 67
  • 116
2
votes
2 answers

Grails, createLink generates wrong link

I am experiencing a weird issue with createlink. I have this in my gsp I expect it to generate something like "/uni/show/1" However, it actually gives me "/uni/create?id=1" I also tried…
MengQi Han
  • 310
  • 1
  • 3
  • 9
2
votes
2 answers

Url Mapping, Url redirection / rewriting

I want to redirect my '/' uri to a given controller's action. I used to do it via the following code in UrlMappings.groovy: "/"(action: "highlights", controller: "project") However, this does not rewrite the url in the browser. It redirects to the…
Alexandre Bourlier
  • 3,972
  • 4
  • 44
  • 76
1
vote
2 answers

how to get cleaner url without showing params.?

i am passing many params from controller to page on post back. so url looks horrible like-…
sana
  • 460
  • 1
  • 10
  • 25
1
vote
1 answer

Grails URL Mapping doesn't seem to work for me

I am very new to grails and have customized the UrlMappings.groovy file as below: "/"(controller:'sampleGroovy',action:'index'). But when I run the application, it still hits the default grails index.gsp file instead of the default controller I…
Michael Maze
  • 73
  • 2
  • 10
1
vote
1 answer

Grails HTTP Proxy

I want to create a proxy controller in grails, something that just takes whatever is passed in based on a url mapping, records what was asked for, sends the request to another server, records the response, and send the response back to the…
user965697
  • 137
  • 13
1
vote
1 answer

IIS urlMappings redirects and SEO

I am using IIS7 and urlMappings to map some urls to actual pages. Example:
George Filippakos
  • 16,359
  • 15
  • 81
  • 92
1
vote
2 answers

customizing url mapping of multiple sites in sitecore

So, I want to customize my mappings of urls to home pages inside Sitecore my sites home pages are nodes like this (below /sitecore/content): /FOO/us /FOO/ca /FOO/..other countries /BAR i Want to reach them by the following urls: mysite.com/us ->…
lurscher
  • 25,930
  • 29
  • 122
  • 185
1
vote
1 answer

Grails view URL Mapping

I'm kind of new to grails and I'm trying to just map a basic URL request to a view. So, say I have a view, /x/index.gsp and I want the user to be able to go to it. There will also be /y/index.gsp, /z/index.gsp, etc. I defined it like…
user965697
  • 137
  • 13
1
vote
3 answers

Getting the current browser url in Grails

I need to get the browser URL in Grails, or particularly, a parameter off of it in the UrlMapping. I need this in a particular circumstance, after an asynchronous call from a different controller/action, at this point, request.forwardURI has changed…
Charlie Mulic
  • 199
  • 2
  • 12
1
vote
2 answers

I can't use Sitemap when I use UrlMapping

when I create folder for every page and remap those in web.config , appeared this problem . 1)I can't see content of pages. 2)When I use navigation controls , my web.SiteMap don't work and don't show path of pages. what is problem in my project ,…
mohammad reza
  • 3,292
  • 6
  • 29
  • 39