kwpknme
Forum Replies Created
-
Yes we own both websites , the redirects are set in the theme using php ( wp_redirect() ).
Thanks.
Hello
Let’s take https://www.mariefrance.fr/category-sitemap.xml as exemple :
there are categories that redirect to a sub-domain of mariefrance , for example :
* https://www.mariefrance.fr/belle-positive
* https://www.mariefrance.fr/belle-positive/bien-dans-ma-peau/beaute-bien-dans-ma-peau
* https://www.mariefrance.fr/belle-positive/bien-dans-ma-peau
* https://www.mariefrance.fr/belle-positive/bien-dans-ma-vie
* https://www.mariefrance.fr/belle-positive/bien-dans-mon-corps-belle-positive
* https://www.mariefrance.fr/belle-positive/bien-quand-jecoute
I know it’s possible to exclude categories from the BO by modifying the category and set
Allow search engines to show this Catégorie in search results? to no
But I also want to remove all permalink articles in these categories from the sitemaps.
There are other articles on our site that are redirected to other urls.urls.Here’s another example:
url with redirection : https://www.mariefrance.fr/web-stories/jardin-voici-les-plantes-quil-ne-faut-surtout-pas-tailler-en-juin
sitemap : https://www.mariefrance.fr/web-story-sitemap.xmlHello there,
i tested the sitemaps on the local project with the W3 Total Cache deactivated ,but the problem still exists.
so i try to test with the twentytwentyone theme, then i add this code to the theme’s functions.php file (to test urls with status code = 302 and 301):function redirect_people_category() {
if (is_category('people') || is_singular() && has_category('people')) {
wp_redirect('https://www.google.com');
exit();
}
}
add_action('template_redirect', 'redirect_people_category');
i deactivate all plugins , except yoast.
but I always found people’s articles links in sitemaps, even those articles have 302 code (redirect to another ULR)
Thanks.Hello ,
Any updates on this request please?
Thanks.
i need also change the amp home page link from to https://www.silicon.fr/amp to https://www.silicon.fr/amp/
Thank you.
Hi Ahmed,
https://www.silicon.fr/tag/qualcomm/amp/page/2
in this example, the link <link rel=”prev” href=”https://www.silicon.fr/tag/qualcomm/amp/” /> must be replaced by <link rel=”prev” href=”https://www.silicon.fr/tag/qualcomm/amp” />
I couldn’t find no filter hook to modify the link !Thanks!
Hi Ahmed,
is for the SEO . in my website the link .../amp/ generate a redirection to …./amp ,
so i want to make this change, the url must be like: …/amp and not like …/amp/Thanks.
Hi we are using AMP version 1.0.9, the function wpColorPicker
called in the file admin-script.js of AMP throwing up an error.——————————————————————–
error :
admin-script.js?ver=0.9.98.22:1014 Uncaught TypeError: $(…).find(…).wpColorPicker is not a function——————————————————————–