If by chance someone is dealing with the same problem and using nginx, 
here's a temporary fix: edit your virtual host configuration, and add this 
lines inside the server {} block directive:

location /appname/ {
        rewrite ^/appname/(.*)$ $scheme://mydomain.com/$1 redirect;
}

El viernes, 24 de abril de 2015, 13:37:43 (UTC-3), Lisandro escribió:
>
> I'm using parametric based routes for mapping each domain with its 
> corresponding app. Because of this, when I use the URL() helper, the 
> application name isn't included in the resulting url, and that is perfect 
> for me. However, inside a scheduled task, the URL() helper generates urls 
> including the app name. 
>
> Both urls (with and without application name) work ok. But considering 
> they are urls for public content, I don't like the idea of having two 
> different urls with the same content, I think it could be 
> counter-productive for SEO and related stuff.
>
> Is there a way to avoid the inclusing of app name in urls generated from 
> sheduled tasks?
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to