Title: Getting &#8220;Unknown error: E_HTA_R&#8221; when making changes to settings
Last modified: January 15, 2024

---

# Getting “Unknown error: E_HTA_R” when making changes to settings

 *  Resolved [t4gal](https://wordpress.org/support/users/t4gal/)
 * (@t4gal)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/getting-unknown-error-e_hta_r-when-making-changes-to-settings/)
 * I have the LiteSpeed Cache plugin set up on my site, but it’s not working. I 
   always get “x-litespeed-cache: miss” when viewing the website while logged out.
 * So I’ve been trying to fiddle with settings to see if there’s something set wrong,
   but every time I make a change to the settings I get an error saying “Unknown
   error: E_HTA_R”, while simultaneously getting a message confirming “Options saved”
 * Just curious what this error means? I can’t find anything on google about it.
 * Thanks in advance!
   Jesse

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

 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/getting-unknown-error-e_hta_r-when-making-changes-to-settings/#post-17345675)
 * when you save , the plugin will attempt to write its rules into .htaccess , the
   error you got , seems to be the .htaccess file is NOT writable , please check
 *  Thread Starter [t4gal](https://wordpress.org/support/users/t4gal/)
 * (@t4gal)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/getting-unknown-error-e_hta_r-when-making-changes-to-settings/#post-17358370)
 * Thanks for the response! I think this particular problem came from my following
   instructions in a Litespeed article which told me to add the following to my 
   wp-config:
 *     ```wp-block-code
       define("LITESPEED_CFG_HTACCESS", "/wordpress/.htaccess");
       ```
   
 * I added this because it was presented as a possible solution to the caching not
   working. I have wordpress installed in a subdirectory.
 * I tried changing the path used in that snippet and the error went away, so perhaps
   I just used the wrong path.
 * However, the ache still isn’t working. So I’m at a loss. Perhaps I should make
   a new thread for this, as it’s a bigger issue.
 * Is there something else I need to do in order to get the caching working for 
   a wordpress install in a subdirectory?
 * Thanks in advance!
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/getting-unknown-error-e_hta_r-when-making-changes-to-settings/#post-17358450)
 * this define is only needed when you have site URL and WP files in different URL/
   path
 * please provide the report number , you can get it in toolbox -> report -> click“
   send to LiteSpeed”
 *  Thread Starter [t4gal](https://wordpress.org/support/users/t4gal/)
 * (@t4gal)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/getting-unknown-error-e_hta_r-when-making-changes-to-settings/#post-17363826)
 * The report number is **ZDEFINJQ**
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/getting-unknown-error-e_hta_r-when-making-changes-to-settings/#post-17364380)
 *     ```wp-block-code
        defined("LITESPEED_CFG_HTACCESS") || define("LITESPEED_CFG_HTACCESS", "/home/xxx/public_html/wordpress/.htaccess");
        defined("LITESPEED_CFG_HTACCESS_BACKEND") || define("LITESPEED_CFG_HTACCESS_BACKEND", "/home/xxx/public_html/wordpress/wp-content/.htaccess");
       ```
   
 * you should set it like this , replace `xxx` to your actual user
 *  Thread Starter [t4gal](https://wordpress.org/support/users/t4gal/)
 * (@t4gal)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/getting-unknown-error-e_hta_r-when-making-changes-to-settings/#post-17366731)
 * Thanks for the response! I’ve added that, but still getting “miss” from litespeed.
 * I tried disabling litespeed through cpanel and enabling it again, and I also 
   deleted and reinstalled the litespeed plugin. Still nothing.
 * Is there something else I should be checking? I’ve looked up different troubleshooting
   methods and I can’t see any reason this isn’t working.
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/getting-unknown-error-e_hta_r-when-making-changes-to-settings/#post-17367961)
 * please confirm that you have properly replace the xxx in my code ?
 * also once you added the define , go to plugin’s setting page , any page , click
   save , so it will trigger the htaccess write again
 * once it is saved, manually verify the both .htaccess, see if you can find the
   cache related rules , you can see them wrapped by something like `#LSCACHE .....`
 *  Thread Starter [t4gal](https://wordpress.org/support/users/t4gal/)
 * (@t4gal)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/getting-unknown-error-e_hta_r-when-making-changes-to-settings/#post-17373388)
 * I did properly replace the xxx in your example, and I’ve confirmed that the .
   htaccess in the /wordpress/ directory and the /wordpress/wp-content/ directory
   both have LScache content.
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/getting-unknown-error-e_hta_r-when-making-changes-to-settings/#post-17374467)
 * interesting issue
 * please create a ticket by mail to `support at litespeedtech.com` with reference
   link to this topic , we will investigate further.

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

The topic ‘Getting “Unknown error: E_HTA_R” when making changes to settings’ is 
closed to new replies.

 * ![](https://ps.w.org/litespeed-cache/assets/icon-256x256.png?rev=2554181)
 * [LiteSpeed Cache](https://wordpress.org/plugins/litespeed-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/litespeed-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/litespeed-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/litespeed-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/litespeed-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/litespeed-cache/reviews/)

 * 9 replies
 * 2 participants
 * Last reply from: [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * Last activity: [2 years, 4 months ago](https://wordpress.org/support/topic/getting-unknown-error-e_hta_r-when-making-changes-to-settings/#post-17374467)
 * Status: resolved