What are some common pitfalls when using Mod_Rewrite for URL redirection in PHP?

One common pitfall when using Mod_Rewrite for URL redirection in PHP is not properly escaping special characters in the regular expressions used for matching URLs. This can lead to unexpected behavior or errors in the redirection process. To solve this issue, make sure to escape special characters like dots, slashes, and question marks with a backslash (\) in your regular expressions.

RewriteEngine On
RewriteRule ^example\.html$ /new-example.html [R=301,L]