We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36180
    • 2 Posts
    I am using SEOMoz for to keep track of site errors and several resources are resolving to the homepage creating a duplicate content issue.

    This is what I am trying:
    rewriterule ^[~231~] /resources/datasheet-reliance-nitro [R=301,NC,L]
    rewriterule ^%5B~231~%5D /resources/datasheet-reliance-nitro [R=301,NC,L]

    When I go to oururl.com/[~231~] it does not redirect...

    ideas?
    • The MODx tags are only useful within MODx. Any external scripts, including the .htaccess file, will not recognize the tags, nor do the tags actually appear in any generated URLs.

      Most likely you have your site’s home page set as the "not found" error page. To avoid having 404 errors loading the home page, create another resource (a site map is a good candidate for this) and assign it to be your 404 not found error page; set this in the Configuration.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 36180
        • 2 Posts
        Thanks for the info... I have a 404 resource working. So what I hear you saying is that nothing outside of modx uses those urls...
        • Yeah, that’s right. [~231~] has no meaning outside the MODx parser. If this is showing up as a link or URL, something is mis-configured -- maybe you’re using it as an alias? I don’t even know if that’s possible... anyway, don’t use MODx tags in .htaccess.

          I use SEOMoz, but I’m not clear on what the problem is -- do you mean that SEOMoz says that there are several duplicate copies of the homepage? When you visit those URLs, does it actually go to the homepage, or does it go to the resource?

          I would make sure you’re using the rel canonical tag correctly and then not worry about it. Just because something shows up as a duplicate in SEOMoz doesn’t mean search engines actually regard it as duplicate content. Search engines have far more sophisticated methods of determining and resolving duplicate issues than SEOMoz does. Take what Moz says as a suggestion, have a look at it, determine if it’s really a problem, and if it’s not then don’t worry about it.