我现在有这个url:
www.mywebsite.com/pt-br/index
但是我需要更改为:
www.mywebsite.com/pt/index
可以使用。htaccess吗?我在wordpress中使用WPML插件。
谢谢!
对不起我的英语,我来自阿根廷!
我的实际htaccess:
# BEGIN WordPress
# The directives (lines) between "BEGIN WordPress" and "END WordPress" are
# dynamically generated, and should only be modified via WordPress filters.
# Any changes to the directives between these markers will be overwritten.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /labs/test-carrito/
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /labs/test-carrito/index.php [L]
</IfModule>
# END WordPress
URL中的语言代码由"code"控制。您可以在WPML->Languages->Edit Languages
中查看您的语言中的选项。https://wpml.org/forums/topic/change-language-code-for-urls/