Rewrite 1.0.0-SNAPSHOT preview is available

Splash Forums Rewrite Users Rewrite 1.0.0-SNAPSHOT preview is available

This topic contains 0 replies, has 1 voice, and was last updated by  Lincoln Baxter III 5 years, 9 months ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #18014

    Check it out

    https://github.com/ocpsoft/rewrite

    http://ocpsoft.com/repository/com/ocpsoft/rewrite

    Powerful URL-rewriting configuration:

    package com.example;
    public class ExampleConfigurationProvider extends HttpConfigurationProvider
    {

    @Override
    public int priority()
    {
    return 10;
    }

    @Override
    public Configuration getConfiguration(final ServletContext context)
    {
    return ConfigurationBuilder.begin()
    .defineRule()
    .when(Direction.isInbound().and(Path.matches("/some/page/.*/")))
    .perform(Forward.to("/new-page/"));
    }
    }

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

Comments are closed.