We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 19471
    • 6 Posts
    Hello friends, for my seo site managing I need that link like site.com/index.php?id=123 do not duplicate friendly links site.com/news. Is there a way to disable index.php?id=123 response or make a redirect to pseudonims? Can’t find answer in administrative area nor faq site..

    Please help.
      • 6955 ☆ A M B ☆
      • 147 Posts
      Revo or Evo?

      If in Revo - make sure you have .htaccess not ht.access. Also if you go to System - System Settings - There is a drop down box on the right side - go to Friendly URLS and then set your settings there.

        Billy Koch
        Follow me on Twitter: @DefKoch
        Skype: billyk0ch
        • 19471
        • 6 Posts
        Revo 2.0.8 and friendly links already works(!), .htacces file is okay (works!) and parametres in System -> System Settings setted corretly. I need to disable links like site.com/index.php?id=24 (that duplicaties friendly links like site.com/about).

        Sorry for my English... sad
          • 3749
          • 24,544 Posts
          Make sure every resource has an alias.
            Did I help you? Buy me a beer
            Get my Book: MODX:The Official Guide
            MODX info for everyone: http://bobsguides.com/modx.html
            My MODX Extras
            Bob's Guides is now hosted at A2 MODX Hosting
            • 9102 ☆ A M B ☆
            • 318 Posts
            There may be a way to do this, though the obvious step of implementing a 301 redirect in .htaccess won’t work because it’ll create an infinite loop.

            However, rather than try to do the redirect, I would recommend using the Canonical URL link element, see

            http://www.google.com/support/webmasters/bin/answer.py?answer=139394

            This is the perfect situation for use of the canonical element, because resolving the duplicate content with a 301 is particularly difficult.

            In this thread: http://modxcms.com/forums/index.php/topic,44222.0.html Ryan gave this code for the Revo version of the canonical element:

            <link rel="canonical" href="[[++site_url]][[*id:isnot=`[[++site_start]]`:then=`[[~[[*id]]]]`]]" />
            


            The other thing is to be careful never to link to anything other than the proper friendly URL for a page.

            This should resolve any trouble with duplicates, including ones you may not have thought of.
              • 9102 ☆ A M B ☆
              • 318 Posts
              Another consideration is that if you have pages where multiple pages of content are generated at the same base URL with different query strings, this will consolidate all of those pages into one "page" in Google’s index. If you don’t want this sort of behavior, that is, if you want each version of the page to be indexed separately, find a way to map those pages onto a unique URL instead of distinguishing them only by query string. For example, if you are using GetPage for pagination you can do this using the method described in this thread:

              http://modxcms.com/forums/index.php?action=printpage;topic=56621.0
                • 3749
                • 24,544 Posts
                There is also a canonical snippet.
                  Did I help you? Buy me a beer
                  Get my Book: MODX:The Official Guide
                  MODX info for everyone: http://bobsguides.com/modx.html
                  My MODX Extras
                  Bob's Guides is now hosted at A2 MODX Hosting