Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps - Status | Demo | Docs | Install
  1. Cloudron Forum
  2. WordPress (Developer)
  3. Proposal: more for wp-config

Proposal: more for wp-config

Scheduled Pinned Locked Moved WordPress (Developer)
7 Posts 4 Posters 2.3k Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • JOduMonTJ Offline
    JOduMonTJ Offline
    JOduMonT
    wrote on last edited by
    #1

    I saw Cloudron team added
    WP_HOME and WP_SITEURL 🙂

    Why not adding COOKIE_DOMAIN and NOBLOGREDIRECT which prevent sending cookies with each request
    ref: https://codex.wordpress.org/Editing_wp-config.php#Set_Cookie_Domain

    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

    jdaviescoatesJ LonkleL 2 Replies Last reply
    0
    • JOduMonTJ JOduMonT

      I saw Cloudron team added
      WP_HOME and WP_SITEURL 🙂

      Why not adding COOKIE_DOMAIN and NOBLOGREDIRECT which prevent sending cookies with each request
      ref: https://codex.wordpress.org/Editing_wp-config.php#Set_Cookie_Domain

      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

      jdaviescoatesJ Online
      jdaviescoatesJ Online
      jdaviescoates
      wrote on last edited by
      #2

      @jodumont said in Proposal: more for wp-config:

      ref: https://codex.wordpress.org/Editing_wp-config.php#Set_Cookie_Domain

      That's the old link, here is the new one: https://wordpress.org/support/article/editing-wp-config-php/#set-cookie-domain

      I use Cloudron with Gandi & Hetzner

      1 Reply Last reply
      0
      • JOduMonTJ JOduMonT

        I saw Cloudron team added
        WP_HOME and WP_SITEURL 🙂

        Why not adding COOKIE_DOMAIN and NOBLOGREDIRECT which prevent sending cookies with each request
        ref: https://codex.wordpress.org/Editing_wp-config.php#Set_Cookie_Domain

        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

        LonkleL Offline
        LonkleL Offline
        Lonkle
        wrote on last edited by
        #3

        @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.

        https://github.com/littlebizzy/slickstack/blob/master/wordpress/wp-config.txt

        1 Reply Last reply
        0
        • girishG Offline
          girishG Offline
          girish
          Staff
          wrote on last edited by
          #4

          Is there more information on COOKIE_DOMAIN ? Since https://codex.wordpress.org/Editing_wp-config.php#Set_Cookie_Domain seems to be broken link

          LonkleL 1 Reply Last reply
          0
          • girishG girish

            Is there more information on COOKIE_DOMAIN ? Since https://codex.wordpress.org/Editing_wp-config.php#Set_Cookie_Domain seems to be broken link

            LonkleL Offline
            LonkleL Offline
            Lonkle
            wrote on last edited by
            #5

            @girish https://wordpress.org/support/article/editing-wp-config-php/#set-cookie-domain

            1 Reply Last reply
            0
            • girishG Offline
              girishG Offline
              girish
              Staff
              wrote on last edited by
              #6

              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.
              1 Reply Last reply
              2
              • LonkleL Offline
                LonkleL Offline
                Lonkle
                wrote on last edited by
                #7

                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.

                1 Reply Last reply
                0

                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                With your input, this post could be even better 💗

                Register Login
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Bookmarks
                • Search