Error on Custom Content Directory
-
Hello,
We have come accross an issue if a site is used in a custom directory. 2 issues have appeared. Let me give you some background first:
We use ithemes custom login url option. after enabling your litespeed cache plugin and configuring then loggin out we were not able to login using the custom url. It gave a 404 page. After a bit of investigating we found that the .htaccess that was getting updated was the one in the custom content folder specified where core WP files would reside and NOT the root .htaccess
That also explins why we were getting very poor results and page speed scores.
here is the code thats being used in wp-config to specif a custom content directory for plugins and themes AND for the WP core files:
// ======================== // Custom Content Directory // ======================== define( 'WP_CONTENT_DIR', dirname( __FILE__ ) . '/FOLDERNAME' ); define( 'WP_CONTENT_URL', 'https://domainname.com/FOLDERNAME' ); /** Absolute path to the WordPress directory. */ if ( !defined('ABSPATH') ) define('ABSPATH', dirname(__FILE__) . '/FOLDERNAME/');
So the 2 issues are:
1. the custom login url specified by ithemes breaks (due to the wrong htaccess file being upadted).2. Wrong htaccess being used NOT the one in root
Because of all this one is not able to login when the plugin is enabled AND the page speed scores are very poor.
FYI, wp rocket doesnt have this issues and works as expected. Updates the root htaccess as it should and allows you to login via custom login url.
We have multiple sites on a litespeed server and want to benefit from the plugin too BUT all have the custom directories specified SO the plugin wont work as exected…
Can you advise and provide a fix????
- The topic ‘Error on Custom Content Directory’ is closed to new replies.