Hi Gaurav, thanks for looking at Roller. Yes, it looks like Roller needs updating here, as most blogging-like tools are now on hyphens:

Wordpress:
http://blog.arungupta.me/2013/11/glassfish-commercial-is-dead-wildfly-and-jboss-eap-to-rescue/

Blogger:
http://owulff.blogspot.com/2013/11/apache-cxf-fediz-110-released.html

Stack Overflow:
http://stackoverflow.com/questions/20146549/compile-method-of-expressiontdelegate-makes-fatal-error-on-android

Confluence (exception, uses +):
https://cwiki.apache.org/confluence/display/CXF/Commercial+CXF+Offerings

And Google, at least as of 2011, recommends using hyphens for new webpages (but does not see much value in switching over if one is already on underscores, as the SEO gain is not much):
http://www.youtube.com/watch?v=AQcSFsQyct8

Team: I think what we should do, starting with Roller trunk (5.1), is default to hyphens but add a roller.properties setting allowing admins to revert to the 5.0.x and earlier default of underscores if they wish: (For simplicity and blog server consistency, I think this should be an admin-only and not a blog-specific setting.)

# Roller 5.1 now separates words in blog URLs using hyphens.
# Enable below to revert to pre-5.1 underscore separators
rendering.use.underscore.separator=false

(better suggestions for property name welcome but it looks like this particular property should be in the "rendering." section of the prop file, hence that prefix.)

Migrations from older Roller versions to Roller 5.1 will keep the underscores for old blog entries (again, for simplicity & so links to them don't go dead) but use hyphens for new entries unless the above property is set to "true". (Anyone aware of other potential hiccups, i18n'ed URLs perhaps, with switching to hyphens?) WDYT?

Regards,
Glen

On 11/23/2013 02:31 AM, Gaurav wrote:
Hello,

As the url in roller are made with underscore in it, Is there a way so that I can change that with dash. As for a new website it will be difficult as google also suggest for using URL with dashes rather than underscore.

*Example**:* [1] to [2]

What will the best way to do this ? I was thinking of doing it in urlrewrite or if possible I can change some lines in code.

[1] - www.yyy.com/blog/xyz/*test_blog
*[2] -**www.yyy.com/blog/xyz/*test-blog

*

Reply via email to