Forums

suggested change on script-loader for better SEO (1 post)

  1. slemos
    Member
    Posted 4 years ago #

    Hi!

    I've found that some search bots follows the links on tags of type <script type="text/javascript" src="url"></script>

    And this is no good, because I don't want to index that content.

    You can use 2 workarounds:

    1.- Use a robots.txt, but you have to change it manually.

    2.- Change on script-loader.php line 182 from:
    echo "<script type='text/javascript' src='$src'></script>\n";
    to:
    echo "<script type='text/javascript' rel='nofollow' src='$src'></script>\n";

    This last option is what I consider optimal to avoid this content get indexed.

    Please consider to include it in future releases!

    Regards!
    Sebastian

Topic Closed

This topic has been closed to new replies.

About this Topic