This cannot be done with routes (at least not unless you list all options for c). You can do this with mod-rewrite in apache.
On Feb 16, 4:06 pm, Thadeus Burgess <thade...@thadeusb.com> wrote: > No. > > example.com/$c/$f > > maps to > > /init/public/$c/$f > > and then > > dashboard.example.com/$f > > maps to > > /init/dashboard/$f > > I basically want > > $c.example.com/$f > > /init/$c/$f > > As I say this I kind of remember a post about this, search failing me. > > -Thadeus > > On Tue, Feb 16, 2010 at 4:02 PM, Wes James <compte...@gmail.com> wrote: > > forgot right bracket ].... > > > On Tue, Feb 16, 2010 at 2:59 PM, Wes James <compte...@gmail.com> wrote: > >> On Tue, Feb 16, 2010 at 2:42 PM, Thadeus Burgess <thade...@thadeusb.com> > >> wrote: > >>> I need to take the following with routes > > >>> controller.website.com/action/args > > >>> and convert it to > > >>> /init/controller/action/args > > >>> How can I do this, I have attempted to copy the book example however > >>> it is just giving syntax errors. > > >> This is a guess based on an example I saw: > > >> routes_in=[('/init/controller/action/args','/action/args') > > >> -wes > > > -- > > You received this message because you are subscribed to the Google Groups > > "web2py-users" group. > > To post to this group, send email to web...@googlegroups.com. > > To unsubscribe from this group, send email to > > web2py+unsubscr...@googlegroups.com. > > For more options, visit this group > > athttp://groups.google.com/group/web2py?hl=en. -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/web2py?hl=en.