Proposal: more for wp-config
JOduMonT last edited by
I saw Cloudron team added
WP_HOME and WP_SITEURL
Why not adding COOKIE_DOMAIN and NOBLOGREDIRECT which prevent sending cookies with each request
define( 'COOKIE_DOMAIN', 'www.domain.tld' );
define( 'NOBLOGREDIRECT', 'https://www.domain.tld' );
I used them on different WP since over a year now with and never add issue
jdaviescoates last edited by
That's the old link, here is the new one: https://wordpress.org/support/article/editing-wp-config-php/#set-cookie-domain
@jodumont Woah, looking around for constants lead me to this super optimized wp-config.php file, it's super unique (cornerstone of a script, slickstack.io). The stack itself is unique. Maybe I'll Dockerfile it someday and offer it as an alternative to the main WP install here on Cloudron. Since researching it, I love their optimizations.
Is there more information on COOKIE_DOMAIN ? Since https://codex.wordpress.org/Editing_wp-config.php#Set_Cookie_Domain seems to be broken link
Thanks. Looks like:
- COOKIE_DOMAIN - when you use a subdomain to serve static assets. This doesn't apply to cloudron.
- NOBLOGREDIRECT seems relevant for multi-site which we don't support yet.
I agree with both of @girish's assessments of the file for the time being. But that doesn't mean that when Cloudron does support multi-site in the future, we can't assess multisite constants. So thanks for bringing it up! It lead me to that really interesting and eye-opening wp-config.php on Github.