Plugin Support
qtwrk
(@qtwrk)
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
(@t4gal)
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:
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
(@qtwrk)
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
(@t4gal)
The report number is ZDEFINJQ
Plugin Support
qtwrk
(@qtwrk)
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
(@t4gal)
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
(@qtwrk)
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
(@t4gal)
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
(@qtwrk)
interesting issue
please create a ticket by mail to support at litespeedtech.com with reference link to this topic , we will investigate further.