We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 27305
    • 173 Posts
    I have furl’s on and have set suffix of .html my problem is if you request www.mydomain.com/page1 the page is served but it should throw up an error page not found only www.mydomain.com/page1.html should work and does.

    This could be seen as duplicate content with google, is this a mod_rewrite issue?

    Help!
      I made my first site with modx
      ------------------------
      Shopping blog
      Sky+ HD
      • 7231
      • 4,205 Posts
      You can resolve this with the SEO Strict plugin.
        [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

        Something is happening here, but you don't know what it is.
        Do you, Mr. Jones? - [bob dylan]
        • 26435
        • 1,193 Posts
        also, you can set the suffix to blank and make your page alias "page1.html" instead of just "page1".

        -sD-
        Dr. Scotty Delicious, DFPA.
          Husband, Father, Brother, Son, Programmer, Atheist, Nurse, Friend, Lover, Fighter.
          All of the above... in no specific order.


          I send pointless little messages
          • 27305
          • 173 Posts
          I have over 600 pages so to change the alias to .html would take me ages, also if you use the breadcrum plugin then containers show with .html and look daft i.e. www.mydomain.com/folder.html/page.html

          I’ll take a look at that seo strict plugin

          thanks

          Simon
            I made my first site with modx
            ------------------------
            Shopping blog
            Sky+ HD
            • 26435
            • 1,193 Posts
            Quote from: simonok at Jun 17, 2008, 01:26 AM

            [...] then containers show with .html and look daft [...]

            I agree.
            If I may be allowed to opine... One could argue (and I would) that exposing your visitors to any file extension (.html/.php/.txt/etc...) anywhere on the site would look daft.

            With the amount of usability that a CMS framework like MODx can provide, it is a mystery to me why we are going out of our way to synthesize file extensions, and in this case, going out of our way to force visitors to adhere to them, when http://mydomain.url/folder/page looks so much cleaner, and there is evidence that this has no impact on SEO friendliness, but increases the security of your site by obfuscating the underlying framework (be it php, asp, jsp, cfm, etc...) as well as protects your upgrade path if you move to a different framework in the future. I, personally, can not come up with reasons anymore to make visitors use .html, .php, .whatever extensions to access content from a database passed through an index controller and modified with an apache rewrite handler. Are we trying to convince people that we did it the hard way? I don’t know.

            The one argument for using an extension would be if you are replacing existing static html pages with a CMS and you are aiming to prevent breaking existing links, bookmarks, and search engine indexes. If you are starting a new site from scratch, arguments in favor of using file extensions on what equates to function calls to the index.php controller are thin at best.

            Again, I could be totally wrong. Just my opinion (1 of almost 12,000 users here), and of course I reserve the right to be totally wrong  tongue

            In any case, the SEO Strict plugin is certainly the best way to accomplish what you described in the original post.

            -sD-
            Dr. Scotty Delicious, DFPA.
              Husband, Father, Brother, Son, Programmer, Atheist, Nurse, Friend, Lover, Fighter.
              All of the above... in no specific order.


              I send pointless little messages
              • 27305
              • 173 Posts
              Url’s do indeed look better without .html, php etc, but all my indexed urls have .html now, I was under the impression it would redirect to .html with mod rewrite. So for me its the non html pages that I need to remove.
                I made my first site with modx
                ------------------------
                Shopping blog
                Sky+ HD
                • 27305
                • 173 Posts
                That seo plugin works great and is a godsend, it should be built into modx as duplicate content with google is a nightmare.
                  I made my first site with modx
                  ------------------------
                  Shopping blog
                  Sky+ HD