Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

Duplicated pages (SEO bug)

edited September 2007 in Vanilla 1.0 Help
Sorry, I not speak English. I hope you understand me :)

URL example:
http://lussumo.com/community/discussion/5999/1/googlemapdirectory/
http://lussumo.com/community/discussion/5999/googlemapdirectory/

This bug located in /library/Framework/Framework.Class.PageList.php, but I don`t know, how change it.

Comments

  • Options
    edited September 2007
    < 1 2 3 4 ... x >
  • Options
    edited September 2007
    My stupid simple method:

    /themes/my_theme/discussion.php
    Add code after 2 string...
    $ModelReplace = array ( //'/discussions/1/' => '/', //Uncomment string, else your Vanilla instalation in root domain directory '/1/"' => '/"' ); $PageList = strtr($PageList, $ModelReplace);

    /themes/my_theme/comments.php
    Add code before 15 string (Based in Default Vanilla theme)
    $ModelReplace = array ( '/1/"' => '/"' ); $PageList = strtr($PageList, $ModelReplace);

    Note: need Friendly Urls and hack short URL.
This discussion has been closed.