The mod_rewrite module allows you to tweak the URLs on your website at the server level. With this rewrite engine, you can not only make URLs look good to the visitors' eyes (while boosting the SEO of your website) but can also enhance the security of your code. More specifically, mod_rewrite helps you rewrite requested URLs, redirect one URL to another and restrict access to your website exactly as you require.