Reply To: 301 permanent Redirect

Splash Forums Rewrite Users 301 permanent Redirect Reply To: 301 permanent Redirect

#27282

banifou
Participant

Hmm, this is just not working, I’m sorry there is no such builder in ocpsoft rewrite. I’m using the last version 2.0.12.
Here is my code:

public Configuration getConfiguration(final ServletContext context) {
        return ConfigurationBuilder.begin()     
                
        for (Map.Entry pair : linkName.entrySet()) {
            builder.addRule().when(Direction.isInbound().and(Path.matches("/some/{page}/"))).perform(Forward.to("/new-{page}/"));
        }
    }