<![CDATA[ SEO : why pages can be available with and without URL rewrite - My Forums]]> https://forums.modx.com/thread/?thread=100666 <![CDATA[SEO : why pages can be available with and without URL rewrite]]> https://forums.modx.com/thread/100666/seo-why-pages-can-be-available-with-and-without-url-rewrite#dis-post-543866 All the website i made with MODX are available with and without URL rewrite.
Is this should be a problem for SEO ?
Don't you think this will be consider as a duplicate content ?
What can we do to resolved it and to force to rewrite all pages ?]]>
Steeve Aug 05, 2016, 01:45 AM https://forums.modx.com/thread/100666/seo-why-pages-can-be-available-with-and-without-url-rewrite#dis-post-543866
<![CDATA[Re: SEO : why pages can be available with and without URL rewrite]]> https://forums.modx.com/thread/100666/seo-why-pages-can-be-available-with-and-without-url-rewrite#dis-post-543868
1. This extra will not force to rewrite the URL like www.website.tld?index.php?id=1 to www.website.tld
2. This extra will be execute only for Symlinks and what about Resources ? ID one in my example is a resource.
3. This can be done with a simply short code inserted in the Head like this :
<link rel="canonical" href="[[~[[*id]]? &scheme=`full`]]" />

If you want to execute the code only on Symlink you just have to test the Class Key : class_key
- modDocument (for normal Resources)
- modSymLink
- modWebLink
- modStaticResource
...

So my question is : Is it possible to force the URL rewrite if someone try to access page like this ?
www.website.tld?index.php?id=1
]]>
Steeve Aug 05, 2016, 03:16 AM https://forums.modx.com/thread/100666/seo-why-pages-can-be-available-with-and-without-url-rewrite#dis-post-543868
<![CDATA[Re: SEO : why pages can be available with and without URL rewrite]]> https://forums.modx.com/thread/100666/seo-why-pages-can-be-available-with-and-without-url-rewrite#dis-post-543867 http://modx.com/extras/package/canonical]]> paulp Aug 05, 2016, 02:33 AM https://forums.modx.com/thread/100666/seo-why-pages-can-be-available-with-and-without-url-rewrite#dis-post-543867