Summary
The RewriteLog is going to be your most useful tool when attempting to troubleshoot your rewrite rule sets. As you become more familiar with regular expression syntax, the most common cause of confusion in mod_rewrite is the difference between rewrite expressions in the main configuration file versus those in .htaccess files.
Setting up a test server on a machine that you completely control, such as your desktop computer, is an almost essential part of really learning mod_rewrite, since if you’re not the server administrator, there’s really no way to effectively use the RewriteLog. Once you have your rules working correctly on the test server, you can move them to the production server and be assured that they will work correctly there.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Rights and permissions
Copyright information
© 2006 Rich Bowen
About this chapter
Cite this chapter
(2006). Debugging. In: The Definitive Guide to Apache mod_rewrite. Apress. https://doi.org/10.1007/978-1-4302-0122-9_12
Download citation
DOI: https://doi.org/10.1007/978-1-4302-0122-9_12
Publisher Name: Apress
Print ISBN: 978-1-59059-561-9
Online ISBN: 978-1-4302-0122-9
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books