Join the community today
Become a Member

Today i wanted to redirect all from everywhere to www. .But i got unwanted redirects

Discussion in 'Domains, DNS, Email & SSL Certificates' started by pheonis, Feb 13, 2019.

  1. pheonis

    pheonis Member

    62
    3
    8
    Dec 21, 2018
    Ratings:
    +4
    Local Time:
    8:56 AM
    Code:
    redis-cli flushall
    has solved this problem. Thanks

     
  2. eva2000

    eva2000 Administrator Staff Member

    58,893
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    1:26 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    Glad to hear :)
     
  3. pheonis

    pheonis Member

    62
    3
    8
    Dec 21, 2018
    Ratings:
    +4
    Local Time:
    8:56 AM
    Hi eva,
    I got one question. I set 301 redirects . now everything works fine. until in gtmetrix im getting "minimize redirect" error.
    because the media files and plugins are still in https:// not in https://www. .Is there a way to transfer all links from non www to www
     
  4. pheonis

    pheonis Member

    62
    3
    8
    Dec 21, 2018
    Ratings:
    +4
    Local Time:
    8:56 AM
    Hi eva,
    I got one question. I set 301 redirects . now everything works fine. until in gtmetrix im getting "minimize redirect" error.
    because the media files and plugins are still in https:// not in https://www. .Is there a way to transfer all links from non www to www
     
  5. eva2000

    eva2000 Administrator Staff Member

    58,893
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    1:26 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    wp-cli search and replace command to update all wordpress instance/references to non-www version might help from Wordpress - centmin.sh menu option 22 - How to switch Wordpress to subdirectory

    Code (Text):
    cd /home/nginx/domains/example.com/public
    wp search-replace 'https://example.com' 'https://www.example.com' --skip-columns=guid
    
     
  6. pheonis

    pheonis Member

    62
    3
    8
    Dec 21, 2018
    Ratings:
    +4
    Local Time:
    8:56 AM
    Hi,
    I tried that. made just 2 changes. then checked the media again.and nothing was changed there.
    Now i uploaded an image to check if its upload to non www or www version, and actually its uploading to non www version.