.htaccess issues + wp-config issues
-
Hi,
Issue 1:
Every time I clone a site with Duplicator and then try and install the website I get an issue on the screen where we enter SQL details…
It never runs, instead the installer.log file link & the responses from pressing test database/next/login with cPanel throws an error.
If I go into the duplicator install folder and drop a simple wordpress .htaccess file it works just fine…
Issue 2:
The “custom” or “rewrite htaccess” options don’t cover all of the needed variables.
To allow all of my subdomains access to the cookies I set a few extra variables:
define('DOMAIN_CURRENT_SITE', '.website.com'); // Used for the subdomain cookies define('COOKIE_DOMAIN', '.website.com'); // Used for the subdomain cookies define('ADMIN_COOKIE_PATH', '/'); // Fixes logins to /wp-admin (without the trailing slash) define('COOKIEPATH', '/'); // Fixes logins to /wp-admin (without the trailing slash)
I also setup a few variables like:
define('WP_ACCESSIBLE_HOSTS', '*.website.com');
Which allows all subdomains to access the site.
I also setup
define('LITESPEED_WP_REALPATH', '/mainwebsite');
Which is the path where the site files live, for example they live in
/home/cpanelaccount/public_html/mainwebsite/
Lastly, I also set both
WP_MEMORY_LIMIT
andWP_MAX_MEMORY_LIMIT
define('WP_MEMORY_LIMIT', '512M'); define('WP_MAX_MEMORY_LIMIT', '1024M');
I always set
WP_MAX_MEMORY_LIMIT
to twice that of the frontend, so admin tasks can run smoother.
- The topic ‘.htaccess issues + wp-config issues’ is closed to new replies.