[wp-trac] [WordPress Trac] #4018: wp-rewrite/save_mod_rewrite_rules doesn't clean up after itself

WordPress Trac wp-trac at lists.automattic.com
Thu Mar 22 21:51:12 GMT 2007


#4018: wp-rewrite/save_mod_rewrite_rules doesn't clean up after itself
----------------------------+-----------------------------------------------
 Reporter:  m0n5t3r         |       Owner:  anonymous
     Type:  defect          |      Status:  new      
 Priority:  normal          |   Milestone:  2.3      
Component:  Administration  |     Version:  2.1.2    
 Severity:  normal          |    Keywords:  has-patch
----------------------------+-----------------------------------------------
 when going back to the default URL scheme after using some sort of
 mod_rewrite permalinks, {{{permalink_structure}}} is emptied, everything
 works as expected;

 however, the rewrite rules are not cleared from {{{.htaccess}}}, since
 {{{save_mod_rewrite_rules}}} relies on {{{permalink_structure}}} being not
 empty and will abort silently, causing all non-existent locations to be
 redirected to Wordpress, which may or may not be what the user wants
 (supposedly if they don't want {{{mod_rewrite}}} permalinks they'll also
 rely on the server to handle 404, etc)

 The fix is a one-liner actually :)

-- 
Ticket URL: <http://trac.wordpress.org/ticket/4018>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list