Mobile app version of vmapp.org
Login or Join
Alves908

: Looking for a step by step guide to URL re-writing with mod_rewrite and other methods I'm looking for step by step resource about how to rewrite URLs and have a few specific questions.

@Alves908

Posted in: #Apache #Htaccess #ModRewrite #UrlRewriting

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 as example.com/products? For that to happen, do I make all of my links point to /products and then have a rewrite rule that directs /products to /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.php instead of just /mail.


Can mod_rewrite fix this too?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Alves908

1 Comments

Sorted by latest first Latest Oldest Best

 

@Murray432

This article on Nettuts+ or Pekka's link shared in the comments above should help you but there are quite a few others out there.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme