[web2py] Re: dashes in controller names?

2010-09-03 Thread Kevin
I agree, and it's often said that there should be one, and only one, URL for each resource. How does googlebot (and other spiders/SEO- related concerns) feel about redirects? I presume they would all handle '301 moved permanently' quite well, but what about '302 found' or '307 temporary redirect'

[web2py] Re: dashes in controller names?

2010-08-31 Thread mdmcginn
A more important SEO consideration than dashes/underscores (since search engines usually treat them the same) is duplicate content/ canonical content. Googlebot doesn't like being fed an infinite number of URLs that all point to the same content. Ideally, there should be logic that would send HTTP

[web2py] Re: dashes in controller names?

2010-08-30 Thread Kevin
Yes indeed, I'm keen to make sure their needs (and yours) are met as well as mine ;) I'm certainly not mandating that anyone follow any particular preference. On Aug 30, 6:14 pm, villas wrote: > On Aug 30, 8:37 pm, Kevin wrote: > > > That last point of yours is why I feel the way I do: the slug

[web2py] Re: dashes in controller names?

2010-08-30 Thread villas
On Aug 30, 8:37 pm, Kevin wrote: > That last point of yours is why I feel the way I do: the slug is > redundant.  Then again, I'm not the kind of programmer to put SEO > ahead of cleanliness. Hi Kevin Hmm, many others would put SEO ahead of anything if it was paying their wages :-) but I see you

[web2py] Re: dashes in controller names?

2010-08-30 Thread Cory Coager
You're 100% correct. However, since the functionality is lacking I would use this as a workaround for SEO. On Aug 30, 3:37 pm, Kevin wrote: > That last point of yours is why I feel the way I do: the slug is > redundant.  Then again, I'm not the kind of programmer to put SEO > ahead of cleanlines

[web2py] Re: dashes in controller names?

2010-08-30 Thread Kevin
That last point of yours is why I feel the way I do: the slug is redundant. Then again, I'm not the kind of programmer to put SEO ahead of cleanliness. For example, if the original URL were: http://myblog.com/articles/5/net-neutrality-and-you Then I'd expect the following URL to fail: http://m

[web2py] Re: dashes in controller names?

2010-08-30 Thread Cory Coager
I suppose I could pass in bogus arguments in the url with dashes that never get used. Still would be nice if the controllers would support dashes.

[web2py] Re: dashes in controller names?

2010-08-26 Thread villas
On Aug 26, 1:38 am, Kevin wrote: > I personally consider hybridized URLs like net-neutrality-and-you> to be junk because there are two unique > identifiers in the URL). Hi Kevin, Your post was interesting and I was curious about your strong view in your comment a

Re: [web2py] Re: dashes in controller names?

2010-08-25 Thread Bruno Rocha
http://myblog.com/articles/net-neutrality-and-you http://myblog.com/ <-- Application + default controller mapped in routes.py articles/ <-- The function that retrieve articles from db net-neutrality-and-you <-- request.args(0) | the article slug where is the problem? I dont think anybody wants t

[web2py] Re: dashes in controller names?

2010-08-25 Thread Kevin
On Aug 25, 1:13 pm, Michele Comitini wrote: > why not have a dictionary? > > controllers = {'route-me-if-you-can': any_time_you_want} > if lookup misses method name is searched as it is? That would be a viable alternative to routes, except it's not desirable to have to hand-code routes except whe

[web2py] Re: dashes in controller names?

2010-08-25 Thread Cory Coager
Add to the list: * Hyphens are preferred to underscores for SEO, http://www.google.com/support/webmasters/bin/answer.py?answer=76329&topic=15261 Can we make this a feature request?

Re: [web2py] Re: dashes in controller names?

2010-08-25 Thread Michele Comitini
why not have a dictionary? controllers = {'route-me-if-you-can': any_time_you_want} if lookup misses method name is searched as it is? The admin interface could expose a way to do it easy. mic 2010/8/25 Jonathan Lundell : > On Aug 25, 2010, at 1:42 AM, Kevin wrote: > >> It would be safe for th

Re: [web2py] Re: dashes in controller names?

2010-08-25 Thread Jonathan Lundell
On Aug 25, 2010, at 1:42 AM, Kevin wrote: > It would be safe for the routing code to treat hyphens as underscores > when matching for app, controller, or function, though -- since web2py > (and python) semantics require that the code itself uses underscores. > Of course underscores in the rest of

[web2py] Re: dashes in controller names?

2010-08-25 Thread Kevin
It would be safe for the routing code to treat hyphens as underscores when matching for app, controller, or function, though -- since web2py (and python) semantics require that the code itself uses underscores. Of course underscores in the rest of the URL would have to pass through untouched. Reve

Re: [web2py] Re: dashes in controller names?

2010-08-24 Thread Jonathan Lundell
On Aug 24, 2010, at 8:03 PM, Kevin wrote: > As far as I can find, you have to set up web2py routes to do this -- > it's pretty easy to do redirection using routes (using routes_in), but > I'm not aware of any way off-hand to do the equivalent of rewriting/ > translation the URL for inbound request

[web2py] Re: dashes in controller names?

2010-08-24 Thread Kevin
As far as I can find, you have to set up web2py routes to do this -- it's pretty easy to do redirection using routes (using routes_in), but I'm not aware of any way off-hand to do the equivalent of rewriting/ translation the URL for inbound requests (routes_out does to translation). This is someth