<![CDATA[ SEOtab doesn't create 301 redirects properly - My Forums]]> https://forums.modx.com/thread/?thread=103342 <![CDATA[SEOtab doesn't create 301 redirects properly]]> https://forums.modx.com/thread/103342/seotab-doesn-t-create-301-redirects-properly#dis-post-556103
Redirects works fine but :

URLs are created with the domain/URL of the default web context, not resource context.

I found the following setting :
301 Redirects are unique per context
and set it to YES
but redirect stop working.

Any idea ?

]]>
johnxx Dec 30, 2017, 05:36 PM https://forums.modx.com/thread/103342/seotab-doesn-t-create-301-redirects-properly#dis-post-556103
<![CDATA[Re: SEOtab doesn't create 301 redirects properly]]> https://forums.modx.com/thread/103342/seotab-doesn-t-create-301-redirects-properly#dis-post-556115 Quote from: johnxx at Jan 01, 2018, 01:08 PM
Quote from: BobRay at Jan 01, 2018, 12:58 AM
If you're redirecting in a snippet or plugin, try using switchContext().

If users are logged in, make sure you use the &contexts property in Login to log them in to all contexts.

If you're using makeUrl(), specify the context in the call (second argument, I think). MakeUrl() will use the current context if you don't specify one.


Thank you for your reply.
I didn't find the source of the problem.
When I create 301 "manually" by clicking on the "Create a 301 redirect" button, the field is prefilled with the right site URL.

I'm thinking about an interaction with another plugin (Babel ?).

I have finally disabled/commented the code generating 301 redirects on alias change in the plugin and set stercseo.context-aware-alias to NO. (if on YES, 301 doesn't redirect).]]> johnxx Jan 01, 2018, 01:15 PM https://forums.modx.com/thread/103342/seotab-doesn-t-create-301-redirects-properly#dis-post-556115 <![CDATA[Re: SEOtab doesn't create 301 redirects properly]]> https://forums.modx.com/thread/103342/seotab-doesn-t-create-301-redirects-properly#dis-post-556114 Quote from: BobRay at Jan 01, 2018, 12:58 AM
If you're redirecting in a snippet or plugin, try using switchContext().

If users are logged in, make sure you use the &contexts property in Login to log them in to all contexts.

If you're using makeUrl(), specify the context in the call (second argument, I think). MakeUrl() will use the current context if you don't specify one.


Thank you for your reply.
I didn't find the source of the problem.
When I create 301 "manually" by clicking on the "Create a 301 redirect" button, the field is prefilled with the right site URL.

I'm thinking about an interaction with another plugin (Babel ?).

I have finally disabled/commented the code generating 301 redirects on alias change in the plugin and set stercseo.context-aware-alias to NO.]]>
johnxx Jan 01, 2018, 01:08 PM https://forums.modx.com/thread/103342/seotab-doesn-t-create-301-redirects-properly#dis-post-556114
<![CDATA[Re: SEOtab doesn't create 301 redirects properly]]> https://forums.modx.com/thread/103342/seotab-doesn-t-create-301-redirects-properly#dis-post-556112
If users are logged in, make sure you use the &contexts property in Login to log them in to all contexts.

If you're using makeUrl(), specify the context in the call (second argument, I think). MakeUrl() will use the current context if you don't specify one.

]]>
BobRay Jan 01, 2018, 12:58 AM https://forums.modx.com/thread/103342/seotab-doesn-t-create-301-redirects-properly#dis-post-556112
<![CDATA[Re: SEOtab doesn't create 301 redirects properly]]> https://forums.modx.com/thread/103342/seotab-doesn-t-create-301-redirects-properly#dis-post-556110 Quote from: johnxx at Dec 31, 2017, 05:36 PM
Quote from: BobRay at Dec 30, 2017, 07:34 PM
Do you have the allow_forward_across_contexts System Setting turned on?

Yes, it is. But it doesn't pair the context with host.
URL keep the default web context host.
I check again http_host for the context and it is correct and distinct from the web context sIte Host.]]> johnxx Dec 31, 2017, 05:36 PM https://forums.modx.com/thread/103342/seotab-doesn-t-create-301-redirects-properly#dis-post-556110 <![CDATA[Re: SEOtab doesn't create 301 redirects properly]]> https://forums.modx.com/thread/103342/seotab-doesn-t-create-301-redirects-properly#dis-post-556109 Quote from: BobRay at Dec 30, 2017, 07:34 PM
Do you have the allow_forward_across_contexts System Setting turned on?

Yes, it is. But it doesn't pair the context with host.]]>
johnxx Dec 31, 2017, 05:36 PM https://forums.modx.com/thread/103342/seotab-doesn-t-create-301-redirects-properly#dis-post-556109
<![CDATA[Re: SEOtab doesn't create 301 redirects properly]]> https://forums.modx.com/thread/103342/seotab-doesn-t-create-301-redirects-properly#dis-post-556105 BobRay Dec 30, 2017, 07:34 PM https://forums.modx.com/thread/103342/seotab-doesn-t-create-301-redirects-properly#dis-post-556105