[wp-hackers] rewrite_rules filter
Ryan Boren
ryan at boren.nu
Wed Jun 30 22:20:00 UTC 2004
Another "public notepad" message.
The rewrite_rules filter is applied in options-permalink. This allows
extra RewriteRule strings to be added to the output generated for
htaccess. However, these additional rules are not available for
PATH_INFO processing. To get the added rules in both places, the
rewrite_rules filter needs to be called in rewrite_rules() where it can
add entries directly into the rules array. This way plugins that
manipulate rewrite rules will also work for those using PATH_INFO rather
than htaccess.
Ryan
More information about the hackers
mailing list