Jump to content

SEO-friendly URLs

Replace query parameters with clean URL segments.

MPC-RSS Logo

Before: /rss-feeds?tx_mpcrss_feed[filterCategory]=Politik&tx;_mpcrss_feed[page]=1After:/rss-feeds/politik/page-1

Configuration

Add config/sites/<your-site>/config.yaml:

 
routeEnhancers:
  MpcRssFeed:
    type: Extbase
    extension: MpcRss
    plugin: Feed
    routes:
      - routePath: /
      - routePath: '/page-{page}'
      - routePath: '/{category}'
      - routePath: '/{category}/page-{page}'
    defaults:
      page: '1'
    requirements:
      page: '\d+'
    aspects:
      category:
        type: StaticValueMapper
        map:
          politik: Politik
          wirtschaft: Wirtschaft
          kultur: Kultur
      page:
        type: StaticRangeMapper
        start: '1'
        end: '100'
 

Add each category you use to the map. Format: url-slug: "Display Name".

Multilingualism

The extension automatically translates generated group names (Today, General, etc.) via XLF. Category names from RSS feeds are retained unchanged.

For multilingual route slugs, use localeMap:

 
aspects:
  category:
    type: StaticValueMapper
    map:
      politik: Politik
    localeMap:
      - locale: en_.*
        map:
          politics: Politik
 

When using date or source grouping, the group names in URLs are determined by the frontend language. Adjust your StaticValueMapper accordingly.

 

Troubleshooting

  • Query parameters are still visible: Clear all caches (vendor/bin/typo3 cache:flush).
  • 404 errors on category pages: Check that the category name matches exactly in the mapping.

Share page