Reply To: Rewrite configuration is not working

Splash Forums Rewrite Users Rewrite configuration is not working Reply To: Rewrite configuration is not working

#28366

SubhojitM
Participant

Hi,

I have createda dummy project. But it is not working. Adding the details. Please check.

@Component
public class MyConfigurationProvider extends HttpConfigurationProvider {

@Override
public Configuration getConfiguration(ServletContext context) {

System.out.println(“*********loading rewrite configurations**********”);
return ConfigurationBuilder.begin()

/* add your rules here */

.addRule(Join.path(“/app”).to(“/test.html”));
}

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

}