Image for post
Image for post

This post is about Spring Framework; if you are not familiar with this framework, reading this article may be useful to you.Using slug in URLs has many benefits, including SEO-friendly and user-friendly. Tuckey is a Java Web Filter which allows you to rewrite URLs before they get to your code ( like Apache’s mod_rewrite).

for using tuckey in spring framework, you must add it’s dependency to pom.xml:


Then in web.xml must add this filter:


finally, you should create a urlrewrite.xml file in procjetName/src/main/webapp/WEB-INF path and write your rules for rewrite URLs into this file. …


Morteza Asadi

Java Developer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store