webdevops / TYPO3-metaseo

TYPO3 MetaSEO Extension
https://typo3.org/extensions/repository/view/metaseo
GNU General Public License v3.0
38 stars 24 forks source link

Blacklist für Pages with Parameters #531

Closed Domtaholic closed 5 years ago

Domtaholic commented 6 years ago

MetaSEO version: 3.0.0

TYPO3 version: 8.7.19

PHP version: 7.1.17

Hey,

we got many Extensions for a big company site, we work a lot with parameters here, cause you can filter for persons and so on.

Our SEO guys do complain about the generated sitemap cause there are a lot of pages wich include these parameters.

Example: http://xx/xx/xx/overview.html?retailer=71887&cHash=b1n5923sb8293c31c7258476fe127b1c

They only want to have clean urls without any parameters.

To achive this i tried the following:

plugin.metaseo.sitemap.index.blacklist = /\?/

Is there another way doing this or is my regex wrong?

Any help here would be great ;)

Thanks

Btw: Thanks for this great Plugin ;) really appreciate it

j4k3 commented 6 years ago

The blacklist parameter expects an array, the patterns are checked against php PCRE. I was looking to do the same and this works for me:

plugin.metaseo.sitemap.index.blacklist.10 = /(.*)\?(.*)/