09-02-2011 05:47 AM
/**
 * @see org.alfresco.wcm.client.Section#getIndexPage()
 */
@Override
public Asset getIndexPage()
{
    return getAsset("index.html");
}
### WCM QS Configuration Properties ### 
wcmqs.indexpage=index.shtml
09-02-2011 06:09 AM
// Redirect /some-url/index.html to /some-url/ to avoid duplicate URLs being flagged by search engines.
// Also Spring Surf resolves index.html requests so DynamicPageViewResolver doesn't get to process them.
if (path.endsWith("/index.html"))         
{
    int lastDelim = path.lastIndexOf('/');
    String uri = context + path.substring(0,lastDelim+1);
    RedirectView redirect = new RedirectView(uri,false,false);
    redirect.setStatusCode(HttpStatus.MOVED_PERMANENTLY);
    return new ModelAndView(redirect);         
}
 
					
				
		
09-02-2011 06:25 AM
 
					
				
				
			
		
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.