Divi WordPress Theme
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Reply To: After upgrade can’t get both www. and non www. links to work at...

Discussion in 'Misc WordPress Requests' started by WordPress.org Forums », Jan 7, 2018.

  1. WordPress.org Forums »


    Reply To: After upgrade can’t get both www. and non www. links to work at same time., by

    Please let me explain the issue.

    WordPress automatically redirects to the main URL of a site, if visitors visit other subdomains/domains related to the site. In our case we have these allowed URLs:

    Since the http://meerkatpress.com/ URL works, I think this is the main URL and your WordPress site redirects the visitors from http://www.meerkatpress.com/ to http://meerkatpress.com/

    However, based on the provided error, there is an output rendered before the actual redirect. That means the header can’t be changed because of the output. This can be proven by visiting this URL http://meerkatpress.com/the-year-of-the-knife-amazon neither (usually WordPress will redirect you to the correct post which is http://meerkatpress.com/the-year-of-the-knife-amazon-giveaway/).

    It appears the JavaScript that is visible on view-source:http://www.meerkatpress.com/ causes the issue. It is encoded and it is hard to be recognized and you’ll need to take some actions to determine what renders the code, as well as, prepare it so it is loaded correctly.

    Here are a few actions you might take in order to solve the problem:
    – try to deactivate each plugin one by one. If a plugin causes the problem, you might need to find another plugin that will provide the same functionality;
    – review the site’s theme. It might displays the code. If you find it, please consider contacting the theme’s owner to discuss how to fix the theme;
    – review the root site files (e.g. index.php, wp-config.php, etc.). This code isn’t part of the WordPress core files but any of them might include that code added by someone manually.

    Before taking any action, it is recommended to do a backup of the site.

    Reply To: After upgrade can’t get both www. and non www. links to work at same time.

Share This Page

Monarch Social Sharing Plugin