I am using the WordPress plugin, Timely All-in-One events calendar. Unfortunately it is creating a plethora of duplicate URLs which end in strings like
https://www.example.com/events/action~agenda/page_offset~-2/request_format~json/cat_ids~4
or
https://www.example.com/events/action~oneday/exact_date~2-4-2019/
As a consequence of these URL directives each being for a different calendar view but containing the same webpage title and content, some search engines are seeing this as duplicate content. Whilst robots.txt
is setup to tell bots to ignore the URLs containing said strings, some crawlers are ignoring robots.txt
. I have also disabled the various different calendar views so there is now only the agenda view but even in spite of this, bots continue to crawl these URLs.
Therefore, is it possible to use an Apache .htaccess
directive to tell the server to direct any requests containing /action~
to either remove the string from the URL so the browser just reads /events/
or to redirect/forward the URLs to another page?
There are over 500 of these URLs so I ideally would like a quick remedy!