A simple way to understand mod rewrite.

@mit $ingh. May 07, 2018 Comments

The world of mod rewrite has too many people getting a fish for a day and not enough people learning to fish. Despite mod_rewrite’s quirky and weird syntax, it’s pretty easy to understand if you look at it the right way. My previous post showed how to remove www and index.html with mod rewrite. Here’s a similar script followed by the same exact logic written in pseudo-code, which should be much easier to understand:

https://mrcoles.com/blog/simple-way-understand-mod-rewrite/

 

  • htaccess
  • mod-rewrite