I'm looking for step by step resource about how to rewrite URLs and have a few specific questions.
I've read the documentation on mod_rewrite in Apache, but I still find myself a little lost.
If I have
example.com/products.html, can I change this to appear asexample.com/products? For that to happen, do I make all of my links point to/productsand then have a rewrite rule that directs/productsto/products.html? Or is it the other way around?Also, for PHP forms, I've noticed that I can't have a form action that points to a directory: for example, it requires
/mail/index.phpinstead of just/mail.
Can mod_rewrite fix this too?