{"id":1000838,"date":"2015-09-01T06:47:02","date_gmt":"2015-09-01T13:47:02","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/non-english-urls-not-routing-correctly-for-views\/"},"modified":"2015-09-08T04:59:11","modified_gmt":"2015-09-08T11:59:11","slug":"non-english-urls-not-routing-correctly-for-views","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/non-english-urls-not-routing-correctly-for-views\/","title":{"rendered":"Non-English URLs not routing correctly for views"},"content":{"rendered":"<p>Hello,<\/p>\n<p>We had been using the WPML for multi-language support, but recently ditched that effort due to too many incompatibilities between WPML and ECP. So, now we are running a dedicated site as part of our multi-site network to support the Spanish language.<\/p>\n<p>However, in this configuration the Spanish-language URLs do not seem to be routing correctly.<\/p>\n<p>For example, the URL:<\/p>\n<p>http:\/\/www.msia.org\/es\/events\/mes\/ (&#8220;mes&#8221; is the Spanish word for &#8220;month&#8221;)<\/p>\n<p>gives a 404, whereas the URL:<\/p>\n<p>http:\/\/www.msia.org\/es\/events\/month\/<\/p>\n<p>routes correctly. The problem is that the links generated by ECP itself for the view picker menu in the upper right use &#8220;mes&#8221; instead of month.<\/p>\n<p>In order to implement a temporary workaround, we have had to implement the following rewrite rules in Apache:<\/p>\n<pre><code>RewriteEngine On\nRewriteBase \/\n# redirection for Spanish events\nRewriteRule ^es\/events\/mes(.*)$ \/es\/events\/month$1 [L,R=301,QSA]\nRewriteRule ^es\/events\/hoy(.*)$ \/es\/events\/today$1 [L,R=301,QSA]\nRewriteRule ^es\/events\/foto(.*)$ \/es\/events\/photo$1 [L,R=301,QSA]<\/code><\/pre>\n<p>However, that&#8217;s a pretty crummy hack and we&#8217;d love to have a more permanent solution.<\/p>\n<p>(Note that \/es\/events\/lista works as well as \/es\/events\/list, so it must be just matching l-i-s-t and stopping.)<\/p>\n<p>Has anyone encountered this kind of thing before? In the Events Calendar (free) plugin translations .po I see that it has entries for e.g. month =&gt; mes and today =&gt; hoy. However, I&#8217;m afraid to delete or alter these in case they&#8217;re used as string translations on the page elsewhere. It doesn&#8217;t specify a context, so I don&#8217;t know if they&#8217;re just being used to generate these URLs or used elsewhere.<\/p>\n<p>Any and all clues greatly appreciated!<\/p>\n<p>Best,<br \/>\nRobert<\/p>\n","protected":false},"template":"","class_list":["post-1000838","topic","type-topic","status-closed","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Non-English URLs not routing correctly for views -<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/non-english-urls-not-routing-correctly-for-views\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Non-English URLs not routing correctly for views -\" \/>\n<meta property=\"og:description\" content=\"Hello, We had been using the WPML for multi-language support, but recently ditched that effort due to too many incompatibilities between WPML and ECP. So, now we are running a dedicated site as part of our multi-site network to support the Spanish language. However, in this configuration the Spanish-language URLs do not seem to be [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/non-english-urls-not-routing-correctly-for-views\/\" \/>\n<meta property=\"article:modified_time\" content=\"2015-09-08T11:59:11+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/non-english-urls-not-routing-correctly-for-views\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/non-english-urls-not-routing-correctly-for-views\/\",\"name\":\"Non-English URLs not routing correctly for views -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2015-09-01T13:47:02+00:00\",\"dateModified\":\"2015-09-08T11:59:11+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/non-english-urls-not-routing-correctly-for-views\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/non-english-urls-not-routing-correctly-for-views\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/non-english-urls-not-routing-correctly-for-views\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/theeventscalendar.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Topics\",\"item\":\"https:\/\/theeventscalendar.com\/support\/topics\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Calendar Products\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Events Calendar PRO\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/events-calendar-pro\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Non-English URLs not routing correctly for views\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\",\"url\":\"https:\/\/theeventscalendar.com\/support\/\",\"name\":\"\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Non-English URLs not routing correctly for views -","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/non-english-urls-not-routing-correctly-for-views\/","og_locale":"en_US","og_type":"article","og_title":"Non-English URLs not routing correctly for views -","og_description":"Hello, We had been using the WPML for multi-language support, but recently ditched that effort due to too many incompatibilities between WPML and ECP. So, now we are running a dedicated site as part of our multi-site network to support the Spanish language. However, in this configuration the Spanish-language URLs do not seem to be [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/non-english-urls-not-routing-correctly-for-views\/","article_modified_time":"2015-09-08T11:59:11+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/non-english-urls-not-routing-correctly-for-views\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/non-english-urls-not-routing-correctly-for-views\/","name":"Non-English URLs not routing correctly for views -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2015-09-01T13:47:02+00:00","dateModified":"2015-09-08T11:59:11+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/non-english-urls-not-routing-correctly-for-views\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/non-english-urls-not-routing-correctly-for-views\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/non-english-urls-not-routing-correctly-for-views\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/theeventscalendar.com\/support\/"},{"@type":"ListItem","position":2,"name":"Topics","item":"https:\/\/theeventscalendar.com\/support\/topics\/"},{"@type":"ListItem","position":3,"name":"Calendar Products","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/"},{"@type":"ListItem","position":4,"name":"Events Calendar PRO","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/events-calendar-pro\/"},{"@type":"ListItem","position":5,"name":"Non-English URLs not routing correctly for views"}]},{"@type":"WebSite","@id":"https:\/\/theeventscalendar.com\/support\/#website","url":"https:\/\/theeventscalendar.com\/support\/","name":"","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1000838","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":2,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1000838\/revisions"}],"predecessor-version":[{"id":1001166,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1000838\/revisions\/1001166"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1000838"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}