Apache’s mod_rewrite
module lets you rewrite URLs in a cleaner fashion, translating human-readable paths into code-friendly query strings. It also lets you rewrite URLs based on conditions. In this tutorial, you’ll enable mod_rewrite
and use .htaccess
files to create a basic URL redirection, and then explore a couple of advanced use cases.
11.7k Views
4 Upvotes
106.7k Views
28 Upvotes
517.4k Views
67 Upvotes
20.3k Views
15 Upvotes
51.7k Views
10 Upvotes
83.6k Views
7 Upvotes