[web2py] URL rewrite

2014-08-14 Thread Manuele Pesenti
Hi! I need to use one of my web2py application as a reverse proxy to browse some web pages served by other systems. Google-ing for it I found this[1] old documentation page who says: " web2py supports URL rerwite although this is not really recommended. You should really use Apache (or lighttpd) +

[web2py] Re: Warning about using web2py URL rewrite?

2014-01-24 Thread Jaime Sempere
That link is outdated, check this: http://web2py.com/books/default/chapter/29/04/the-core#URL-rewrite And for www.example.com/someapp/default/index to www.example.com/ you only need to do: routers = dict( BASE = dict(default_application='someapp'), ) -- Resources: - http://web2py.com - h

[web2py] Warning about using web2py URL rewrite?

2014-01-24 Thread User
http://www.web2py.com/AlterEgo/default/show/42 says: "web2py supports URL rerwite although this is not really recommended. You should really use Apache (or lighttpd) + mod_proxy (or mod_rewrite) for this purpose. Moreover rewriting web2py urls can break links in applications. So *do not do

[web2py] Web2py URL rewrite according to preferred language

2012-07-11 Thread Athelionas
Is it possible to rewrite a URL according to preferred language of browser? I mean if the browser's preferred language is, for example, English then rewrite example.com/app/controller/index to example.com/app/en/controller/index. In routes.py I could set up languages but if I set default_langua

Re: [web2py] url rewrite for a multilingual / international site and search engine visibility

2012-05-17 Thread Jonathan Lundell
On May 17, 2012, at 5:21 AM, yus wrote: > I am using web2py for a multilingual web-site with. > > I want to manage language setting the same way that it is managed in the > admin application (that is through session and cookies I guess), but at the > sale time I want the language to be explicitl

[web2py] url rewrite for a multilingual / international site and search engine visibility

2012-05-17 Thread yus
I am using web2py for a multilingual web-site with. I want to manage language setting the same way that it is managed in the admin application (that is through session and cookies I guess), but at the sale time I want the language to be explicitly indicated on the url structure as mysi

[web2py] url rewrite for a multilingual / international site

2012-05-17 Thread yus
I am using web2py for a multilingual web-site with. I want to manage language setting the same way that it is managed in the admin application (that is through session and cookies I guess), but at the sale time I want the language to be explicitly indicated on the url structure as

[web2py] URL rewrite throwning invalid request when URL contains spaces or hyphens

2011-04-30 Thread Syed Mushtaq
Hi , I was using rewrite for making the URL reader friendly . When I use a space or hypen in the URL instead of passing it to the controller , it gives an invalid request . I have configured the routes as follows routes_in = (( r'/$id/$name' , r'/app/default/view/$id/$name') ) routes_out = ( (

Re: [web2py] url rewrite for SEO optimization

2010-06-17 Thread Jonathan Lundell
On Jun 16, 2010, at 11:36 AM, Michelle Jun wrote: > i am wondering if i can do these things > > for example, i have list of businesses url links (this is generated > from my web2py default) > > http://domain.com/default/business/8 > http://domain.com/default/business/9 > http://domain.com/defaul

[web2py] url rewrite for SEO optimization

2010-06-16 Thread Michelle Jun
hi i am wondering if i can do these things for example, i have list of businesses url links (this is generated from my web2py default) http://domain.com/default/business/8 http://domain.com/default/business/9 http://domain.com/default/business/10 http://domain.com/default/business/11 http://doma