Skip to main content
  • 341 Accesses

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 44.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 59.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 54.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Rights and permissions

Reprints 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

Publish with us

Policies and ethics