but this shouldn't open http://rochacbruno.com.br/init/default/sobre
right?

On May 23, 8:03 pm, Bruno Rocha <rochacbr...@gmail.com> wrote:
> The same happens for, me, and I see on;y one problem.
>
> I have 2 apps inside a web2py instance, with 2 different domains as follows.
>
> init apphttp://cursodepython.com.br
>
> blog app
>
> http://rochacbruno.com.br
>
> The only problem I have is with Google indexing, because google finds this:
>
> http://cursodepython.com.br/sobre
>
> But the follows dows not workhttp://rochacbruno.com.br/sobre
>
> and should be rewriten ashttp://rochacbruno.com.br/init/default/sobre (but
> URL()  does not do that)
>
> --
> Bruno Rocha
> [ About me:http://zerp.ly/rochacbruno]
>
> On Mon, May 23, 2011 at 2:00 PM, Francisco Costa 
> <m...@franciscocosta.com>wrote:
>
>
>
>
>
>
>
> > Hello,
> > I have a main app and a blog app
>
> > My routes.py are like this:
> > routers = dict(
> >    BASE = dict(
> >        default_application = 'main',
> >        default_controller = 'default',
> >        default_function = 'index',
> >        domains = {
> >            "domain.com" : "main",
> >            "blog.domain.com" : "blog",
> >        }
> >    )
> > )
>
> > While I'm browsing through the subdomain "blog.domain.com" I have some
> > links that point to the main app.
> > Those links are generated like this:
> >http://blog.domain.com/main/test
>
> > If I click on it it works, but I would like the link to be generated
> > as
> >http://domain.com/main/test
>
> > This is bad because 2 different domains urls shouldn't target the same
> > page and it also duplicates data which is bad for SEO
>
> > Any help?

Reply via email to