web2py en una sub url

Si queremos que web2py funciones en una dirección del tipo:

http://midominio.com/web2py/

Es necesario que creemos (o copiemos del ejemplo) el fichero routes.py con un contenido similar a:

 

routes_in=(('/web2py/(?P<a>.*)','/\g<a>'),)
routes_out=(('/(?P<a>.*)','/web2py/\g<a>'),) 
Marcar el enlace permanente.

Un comentario

  1. Hi there! This is my first visit to your blog! We are a collection of volunteers and starting a new initiative in a community in the same niche. Your blog provided us valuable information to work on. You have done a extraordinary job!

Deja una respuesta