On Sat, Jul 11, 2009 at 7:28 AM,
[email protected]<[email protected]> wrote:
>
> Hi All,
>
> We have used relative path in our entire web application. As per our
> SEO recommendation, we need to change the path to absoute path.
>
> Our development server still follows localhost:5000 but the deployment
> is going to be on port 80, hence it would be like http://www.example.com/
>
> What is the easy way to handle this in entire framework? We use some
> static link but they are accessible to mako and we also use url_for.

The browser/search engine knows where it requested the page from, so
it can resolve relative links.  Absolute URLs in the rendered page
make no difference.  The Pylons standard is to use url() everywhere.
(url_for() is an older tradition which will be phased out by Pylons
1.0.)  You can pass qualified=True for any URLs you want to make
absolute.  (That might be a good idea for one link that's a permalink
back to the page with its canonical URL.)

Hardcoded relative links, while not common in Pylons applications,
would also work.

I don't know what "static link accessible to mako" means.

For search engine optimization, the best thing to do is make sure your
title tags and meta tags are in order.  And if your site is available
under multiple domains (foo.com and www.foo.com), make all except one
redirect to the main one.

-- 
Mike Orr <[email protected]>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to