• Artform

    (@a3sthetix)


    For some reason, with WooCommerce enabled, my pretty links always redirect to this spam website. It only happens with pretty-links and WooCommerce enabled. I’ve searched the database and all code for the name of the site and cannot find the source of the redirect. I know it’s JavaScript based because I viewed the source in Chrome using “view-source:http://atrsports.com/blahblah/” in the address bar. This happens all all computers I’ve tested with.

    Here’s the code appearing:

    var pathArray = location.pathname.split('/');
    var ap = "/";
    for(var i=1; i<pathArray.length-1; i++) {
         ap += pathArray[i] + "/";
    }
      window.location.replace("http://mscdailynews.com/?" + ap);

    Anyone have any idea how to locate this garbage?

    https://wordpress.org/plugins/woocommerce/

Viewing 3 replies - 1 through 3 (of 3 total)
  • I’m having the same issue. All my 404 are redirected to the same site but I’m ussing different plugins:

    • Advanced Custom Fields – Version 4.3.8
    • All In One SEO Pack – Version 2.2.1
    • Formulario de Contacto 7 – Version 3.9
    • Google XML Sitemaps v3 for qTranslate – Version 3.4.1
    • qTranslate – Version 2.5.39
    • qTranslate slug – Version 1.1.7

    WordPress Version 3.8.1

    This is happening to me as well. Redirecting to http://mscdailynews.com when I try to go to my admin panel. Grrrrr…..

    OK, so for my situation I just deleted my htaccess file and regenerated a new one and it fixed this. Seems the redirect was written into it somehow. Hope that helps someone else out there.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘JavaScript redirection’ is closed to new replies.