• Resolved Fvieville

    (@fvieville)


    Hi everybody,

    I need to have spcecifics urls in a wordpress network.
    The website uses sub-directory configuration.

    I’d like to have multi-sites with this kind of URL :
    http://www.mysite.com (root site)
    http://www.mysite.com/输送带/ (site 1)
    http://www.mysite.com/输送线体/ (site 2)

    But wordpress only allows lowercase letters and numbers when creating a new site in the network. Unicode characters are only available for articles or pages urls, not for sites urls.

    I’ve tried to modify it directly in the database, but I have a 404 error when trying to go on a chinese site.
    I think that the .htaccess has to be modified (and maybe something else too).

    Is it possible to have this king of unicode urls in wordpress ?

    Thanks for helping,

    François

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Use percent encoding. Modern browsers will take care of display & paste issues and make it human-readable. Basically you have to use punycode: http://en.wikipedia.org/wiki/Punycode

    Thread Starter Fvieville

    (@fvieville)

    Hi,

    I’ve tried your percent encoding solution.

    But it needs the htaccess file to be modify like this :
    Replace “[_0-9a-zA-Z-]” with “.”

    Example :
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
    it becomes
    RewriteRule ^(.+/)?wp-admin$ $1wp-admin/ [R=301,L]

    With percent encoding and htaccess modifications, it works well.

    Thank you very much,

    François

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Multisite unicode URLs’ is closed to new replies.