Enter your mobile number or email address below and we'll send you a link to download the free Kindle App. Then you can start reading Kindle books on your smartphone, tablet, or computer - no Kindle device required.
To get the free app, enter your email address or mobile phone number.
The Definitive Guide to Apache mod_rewrite (Definitive Guides) Hardcover – February 7, 2006
Top 20 lists in Books
View the top 20 best sellers of all time, the most reviewed books of all time and some of our editors' favorite picks. Learn more
Customers Who Viewed This Item Also Viewed
More About the Author
Top Customer Reviews
I admit that I had did the whole "trial and error" thing coupled with scouring the net for examples before I realized having a book would make things so much easier. So I resorted to searching Amazon for mod_rewrite. This is the only book that my search turned up.
I have to say the book was definitely well worth it. The tips about when to NOT use mod_rewrite was very much appreciated. Some of my uses could have been accomplished with a FilesMatch or DirectoryMatch directives instead of a RewriteRule.
The VirtualHosts chapter was useful, as was the Proxy chapter. I didn't realize how useful mod_proxy was until this chapter gave a few good examples.
All in all I'm very satisfied with this book. Because of the short length I was worried that it wouldn't cover the material well enough. However I don't think there is anything I've needed to do with mod_rewrite that this book didn't cover well enough for me to accomplish without another resource.
Still, the book contains easy to read explanations, a quick primer on Regular Expressions, recipes, and - very important - examples of problems that should NOT be solved with mod_rewrite because there is an easier way to do it.
So for those that are no experts yet and thus far had to consult the (not very user-friendly) official documentation on the Apache website, this book is certainly a good introduction.
1. Make search engine friendly URLs (dynamically generated by my site) work.
2. Block bad bots and remote file inclusion attempts.
3. Rename pages or move them seamlessly.
I would recommend this book to anyone, it was easy to understand even from the point of view of someone just starting out.
The next two chapters cover real-world examples which include adjusting URLs, reorganization of content, forcing SSL, and serving content based on a username. Access control, virtual hosts (yes, using mod_rewrite!), proxying and debugging make up the remaining chapters which are packed full of information (a lot of which I didn't know about).
I think that The Definitive Guide to Apache mod_rewrite really is just that: definitive. It is a must have for any systems administrator who wants to use mod_rewrite on an Apache web server, and I strongly recommend it.
Most Recent Customer Reviews
If you're doing anything more than 301 redirects (and you probably should be using redirectmatch for most of those), this is the guide you should read first. Read morePublished 20 months ago by BBCReview
I was looking for more explanation of Mod-rewire procedures. I found the examples did not go into a deep enough explanation in order to get an understanding so that you could write... Read morePublished 20 months ago by tom moore
I'm new to using mod_rewrite. My website is on a shared host. Most web developers are programming for this environment. If that's your situation this book is of little use to you. Read morePublished on May 12, 2012 by Ralph Stevens
I was very disappointed with this book. The information inside is so basic and cursory that you're bound to quickly run into situations more advanced than the contents can... Read morePublished on August 21, 2007 by J. Tunnell