Title: Changed .htaccess Debug Lines
Last modified: December 30, 2024

---

# Changed .htaccess Debug Lines

 *  Resolved [technoogies](https://wordpress.org/support/users/technoogies/)
 * (@technoogies)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/changed-htaccess-debug-lines/)
 * This plugin removed and replaced my debug if statements.
 * ORIGINAL
 * /*** —[ Turn on WP DEBUG Here ](https://codex.wordpress.org/Turn_on_WP_DEBUG_Here)—***/
   
   define( ‘WP_DEBUG’, false );if (WP_DEBUG) {define( ‘WP_DEBUG_DISPLAY’, true );//
   true OR falsedefine( ‘SCRIPT_DEBUG’, true ); // true OR false, force WordPress
   to use the DEV versions of core CSS and JavaScript files rather than the minified
   versionsdefine( ‘SAVEQUERIES’, true ); // true causes each query to be saved,
   how long that query took to execute, and what function called it.}define( ‘WP_DEBUG_LOG’,
   $sitepath . ‘.hold/wp-errors.log’ ); // Create a hidden folder named .hold
 * After activating the plugin:
 * /*** —[ Turn on WP DEBUG Here ](https://codex.wordpress.org/Turn_on_WP_DEBUG_Here)—***/
   
   if (WP_DEBUG) {// true OR false// true OR false, force WordPress to use the DEV
   versions of core CSS and JavaScript files rather than the minified versionsdefine(‘
   SAVEQUERIES’, true ); // true causes each query to be saved, how long that query
   took to execute, and what function called it.}// Create a hidden folder named.
   hold

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Bowo](https://wordpress.org/support/users/qriouslad/)
 * (@qriouslad)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/changed-htaccess-debug-lines/#post-18222429)
 * [@technoogies](https://wordpress.org/support/users/technoogies/) Debug Log Manager
   only directly modifies wp-config.php. It does not touch .htaccess. Perhaps you
   have something that is trying to sync wp-config.php with .htaccess?
 *  Thread Starter [technoogies](https://wordpress.org/support/users/technoogies/)
 * (@technoogies)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/changed-htaccess-debug-lines/#post-18222817)
 * You are correct!
   I miss stated the file name and it is wp-config.php.
 *  Plugin Author [Bowo](https://wordpress.org/support/users/qriouslad/)
 * (@qriouslad)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/changed-htaccess-debug-lines/#post-18223041)
 * [@technoogies](https://wordpress.org/support/users/technoogies/) Debug Log Manager
   does not expect an if statement to be present. Can you remove all the debug-related
   lines in wp-config.php first? Then try to disable then re-enable debug loggin
   in Debug Log Manager’s dashboard.
 *  Thread Starter [technoogies](https://wordpress.org/support/users/technoogies/)
 * (@technoogies)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/changed-htaccess-debug-lines/#post-18223047)
 * All of my sites are set this way. The plugin works regardless of the if statement.
   
   Would it pass over it if the entire if statement was commented out?I’ll just 
   need to remember to remove them if not, when activating the plugin.
 * Maybe add a check for if statements in a future release and comment it out automatically,
   then remove the commented if when disabled?
 *  Plugin Author [Bowo](https://wordpress.org/support/users/qriouslad/)
 * (@qriouslad)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/changed-htaccess-debug-lines/#post-18223066)
 * [@technoogies](https://wordpress.org/support/users/technoogies/) I thought debug
   logging was broken / not working. If it works, then that’s OK I guess. It’s just
   that toggling debugging on / off in Debug Log Manager will probably not restore
   your wp-config.php as it was with the if statement. I will probably not make 
   any change in Debug Log Manager to compensate for an edge case like yours. Fiddling
   with wp-config.php programmatically is rather tricky. It’s been working fine 
   as is for 5,000+ installs so far, so, I’ll leave it as is for now if you don’t
   mind. Thanks again for reporting the issue in details.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Changed .htaccess Debug Lines’ is closed to new replies.

 * ![](https://ps.w.org/debug-log-manager/assets/icon-256x256.png?rev=2783658)
 * [Debug Log Manager - Conveniently Monitor and Inspect Errors](https://wordpress.org/plugins/debug-log-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/debug-log-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/debug-log-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/debug-log-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/debug-log-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/debug-log-manager/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Bowo](https://wordpress.org/support/users/qriouslad/)
 * Last activity: [1 year, 5 months ago](https://wordpress.org/support/topic/changed-htaccess-debug-lines/#post-18223066)
 * Status: resolved