We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 17617
    • 8 Posts


    I have some problems with url friendly aliasing.

    Some data on my system:
    - Apache2/PHP Version 5.3.3-0.dotdeb.1
    - MODX Revolution 2.1.0-pl (traditional)
    - 2 contexts setup
    - friendly url suffix: .html
    - friendly_alias_url: yes
    - friendly_urls: yes
    - global_duplicate_uri_check: no
    - use_alias_path: no

    Website structure:
    - Home
    - CategoryA
    - Subcategory A
    - Subcategory B
    - CategoryB
    - Subcategory 1
    - Subcategory 2

    Whenever I am in Subcategory A for example, and want to switch to Subcategory 2, the URL looks like this:
    "http://www.domain.com/subcategoryA/subcategory2"

    htaccess used is the original one.
    The context site_url is "http://www.domain.com/"

    In error logs I have some entries like this one:
    [2011-06-21 22:15:15] (ERROR @ /connectors/resource/index.php) Resource URI aliasname.html already exists for resource id = 10; skipping duplicate resource URI for resource id = 22


    Any help would be appreciated smiley

    Thank you.
    Luckyred
      • 19302
      • 6 Posts
      Just going quickly over what you’ve got :

      use_alias_path - no, means that there should be no /folder/document.html urls. That document should be located at /document.html.

      So, make sure you have in the <head> of your template : <base href="[[++site_url]]" />


      The error is saying that for a given context, there are two documents with the same uri (which is alias + content type) eg : document.html. Have you ticked the freeze uri, and given two docs the same uri?

      And, why are you using contexts - I mean, how are you switching between them, and what are you trying to achieve by having two? (I ask this because : for quite a few sites you can get away with only having the web context)

        • 17617
        • 8 Posts
        Thanks michaelm for giving a hand on this.

        While splitting template up into chunks, I left the BASE tag behind (<base href="[[++site_url]]" />).
        I haven’t noticed that.

        I have babel multilanguage module installed. Babel uses differents contexts to switch between languages.
        You can duplicate a ressource into another context to create linked content in another language. Babel copies the alias while doing that. Either haven’t noticed that.

        Thank you a lot!
        luckyred
          • 19302
          • 6 Posts
          np mate. gl with your site laugh