[ http://jira.magnolia-cms.com/browse/MAGNOLIA-2589?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jan Haderka updated MAGNOLIA-2589: ---------------------------------- Fix Version/s: 4.3.x (was: 4.3.2) > Remap different possible url to the same while accessing the page > ----------------------------------------------------------------- > > Key: MAGNOLIA-2589 > URL: http://jira.magnolia-cms.com/browse/MAGNOLIA-2589 > Project: Magnolia > Issue Type: Improvement > Affects Versions: 4.0 > Reporter: Jan Haderka > Assignee: Boris Kraft > Fix For: 4.3.x > > > Currently one page can be accessed in multiple different ways, i.e.: > * http://www.magnolia.info/en/products/enterprise > * http://www.magnolia.info/en/products/enterprise/ > * http://www.magnolia.info/en/products/enterprise.html > For SEO it would be better if first two cases are re-mapped to the third. > The second case can be mapped using VirtualURIMapping > {code} > class=i.m.cms.beans.config.RegexpVirtualURIMapping > fromURI=/(.*)/$ > toURI=redirect:/#1.html > {code} > Solving the first case using VirtualURIMapping would require mapper > inteligent enough to parse the url, figure out if there are any query params. > Something along lines of > {code} > class=i.m.cms.beans.config.RegexpVirtualURIMapping > fromURI=/(.*[^'.html'])(\\?)(.*) > toURI=redirect:/$1.html$2$3 > {code} > and for requests without any query params: > {code} > class=i.m.cms.beans.config.RegexpVirtualURIMapping > fromURI=/([^\\?]*)$ > toURI=redirect:/$1.html > {code} > Or possibly combination of the two patterns above into one covering both > cases - w/ and w/o query params. > However since default extension can be configured in admin interface, this > mapping should be smart enough to use the default extension rather then > blindly mapping everything to html. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.magnolia-cms.com/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ---------------------------------------------------------------- For list details see http://www.magnolia-cms.com/home/community/mailing-lists.html To unsubscribe, E-mail to: <dev-list-unsubscr...@magnolia-cms.com> ----------------------------------------------------------------