Forums / Suggestions / "Redirect to main_node" settings

"Redirect to main_node" settings

Author Message

Damien Pobel

Thursday 31 August 2006 7:08:50 am

For SEO, having a document accessible by multiple URLs is bad. eZ publish should have an option (in settings) making the system redirect to the url of the main node with a permanent redirect.

Damien
Planet eZ Publish.fr : http://www.planet-ezpublish.fr
Certification : http://auth.ez.no/certification/verify/372448
Publications about eZ Publish : http://pwet.fr/tags/keywords/weblog/ez_publish

Matthew Carroll

Tuesday 21 November 2006 9:20:36 pm

Very good idea. This functionality should be fairly easy to accomplish by checking the current url within the template level and using the Redirect Operators extension to redirect from system to virtual url if necessary:

http://ez.no/community/contribs/template_plugins/redirect_operators

I agree it would be a nice option to have as an ini setting (and this would be a more appropriate place for it than a template hack.) Perhaps you could post this as a feature request on http://issues.ez.no

Matthew

http://carroll.org.uk

Xavier Dutoit

Wednesday 22 November 2006 1:09:45 am

Hi,

You can also "hide" the fact that you have a page in several locations.

On my view line.tpl I often do a

{$node.object.main_node.url_alias}

instead of the

{$node.url_alias}

So when I list the children on a page, the link goes to the main location of any child.

Works quite ok.

X+

http://www.sydesy.com