• vebbmaster

    (@vebbmaster)


    I have a very specific problem.

    It’s a multisite setup with custom post types/taxonomies, which are created by a “network activated” and theme-specific plugin (which I cannot edit).

    The different sites are all in different languages, so I would like to translate the custom post type slugs for each site.

    The values are not stored in the database, plugins like Permalink Manager Pro do not work and I cannot use functions.php (since all the sites/languages share the same file) to overwrite the plugin’s entries.

    What are my options? Domain-specific rewrites in htaccess?

    • This topic was modified 5 years ago by vebbmaster.
Viewing 1 replies (of 1 total)
  • JNashHawkins

    (@jnashhawkins)

    I’d probably just leave the slugs as is in English maybe…

    Can you create specific child themes for each site? This plugin takes the pain out of creating child themes.

    https://www.ads-software.com/plugins/child-theme-generator/

    You should be able to use the Child Theme’s function.php file to rewrite those permalinks or slugs in some manner specific for just that site.

    This site might help you with that PHP code you’ll then need.

    https://www.rapidtables.com/web/tools/redirect-generator.html

    I’ve never done this as you want to do but I’ve used the two sources for other projects so proceed carefully and test but this might get you through.

    Also, the Rapidtables generator can do fantastic htaccess directives so do take a look at that capability but if you have a lot of sites you might need to place those in http.config instead of htaccess. You really don’t want a huge htaccess file!

    The functions.php in the child themes is probably the better choice.

Viewing 1 replies (of 1 total)
  • The topic ‘Different URL rewrites on different Multisite sites?’ is closed to new replies.