close

April 2024 only! Join our Discord free of charge.

Slick­Stack
Lightning-fast WordPress on Nginx

Subdomains being redirected to “dev.domain.com_excluding_www”

  • This topic is empty.
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #4898
    Amanda
    Guest

    Out of the blue our dev and stg subdomains started to get redirected to “dev.domain.com_excluding_www”.

    I’ve tried purging all cache, nginx cache, checked the nginx site files (and they seem fine).

    Really no ideia whats happening, didn’t want to ss-install again so website isnt down…

    Any ideas?

    #4900
    Larry
    Guest

    oh no must be from wp-config

    #4901
    Kyle
    Guest

    Yes we just committed a patch:

    https://github.com/littlebizzy/slickstack/commit/9558434be2b29d12e80bab15f445b793adb714c4

    The order of the sed commands has been rearranged to prevent conflicts.

    ss_sed "s/@SITE_DOMAIN_EXCLUDING_WWW/${SITE_DOMAIN_EXCLUDING_WWW}/g" "${TMP_WP_CONFIG_PHP}" ## must be first
    ss_sed "s/@SITE_DOMAIN/${SITE_DOMAIN}/g" "${TMP_WP_CONFIG_PHP}"
    ss_sed "s/@SITE_TLD/${SITE_TLD}/g" "${TMP_WP_CONFIG_PHP}"

    Please try now!

    #4902
    Patrick
    Guest

    Btw in fact these sed rules were incorrect for prior months too. Because it was including the www in the staging/dev site domains.

    But I think Nginx was overriding that so the error was unnoticed.

    #4903
    Diane
    Guest

    so actually 2-3 bugs now fixed in staging/dev sites wp-config 😀

    #4910
    Daniel
    Guest

    cool… do we need to update this manually?

    #4911
    Betty
    Guest

    do we need to update this manually?

    Nope! The patch was force-updated via GitHub using the ss-worker bash script. All SlickStack servers should be patched now.

    #4939
    Olivia
    Guest

    hey folks, thanks a lot for the support! worked like a charm. was pretty preocupied yesterday lol nice that its fixed.

    #5016
    Jerry
    Guest

    ♥️👍🏻

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.

Thanks to our generous sponsors for their support!