Discover Centmin Mod today
Register Now

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

    54
    3
    8
    Dec 21, 2018
    Ratings:
    +4
    Local Time:
    1:11 PM
    Code:
    redis-cli flushall
    has solved this problem. Thanks
     
    • Like Like x 1
  2. eva2000

    eva2000 Administrator Staff Member

    42,032
    9,475
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,584
    Local Time:
    5:41 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    Glad to hear :)
     
    • Like Like x 1
  3. pheonis

    pheonis Member

    54
    3
    8
    Dec 21, 2018
    Ratings:
    +4
    Local Time:
    1:11 PM
    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

    54
    3
    8
    Dec 21, 2018
    Ratings:
    +4
    Local Time:
    1:11 PM
    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

    42,032
    9,475
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,584
    Local Time:
    5:41 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    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

    54
    3
    8
    Dec 21, 2018
    Ratings:
    +4
    Local Time:
    1:11 PM
    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.