Hello Carlos and others.
Just a little but quite important trouble when using I18n for multilangual site. Mlvcek has sent me here
Only when I use custom permalinks like
News Manager articles/news don't work. The list of the articles with the excerpts is ok, however, after clicking onto some of the articles I get to the page with "Sorry, no content".
My custom permalink structure in the admin panel is
and my .htacces is set like this
Everythings works as it is supposed be, except the news from News Manager articles. You can see News Manager lines (starting with "clanky", "clanky" is my menu tam with news from News Manager), which are there for Fancy URLs (you can use Fancy URLs and News Manager without these lines in .htaccess). What should I add or change about the News Manager lines to make it work with this plugin and Fancy URLs?
// an unimportant part from here
I would prefer using permalinks which add /language_code/ to the address only with non-default languages. It means that when my site is Czech as a default and English as a secondary language, it won't make addresses with /en/ with Czech setup. Only after setting up the language it will add /en/ to the address.
In this case, the custom permalink structure is
and in the .htaccess there is changed only the last line (with comparison to .htaccess code above)
However, I'm still working on making my site work with this setup, so don't bother with this so far, I think the key is to set something in front of "clanky" in the code of News Manager in .htaccess.
// the end of the unimportant part
Thanks for your help.
Just a little but quite important trouble when using I18n for multilangual site. Mlvcek has sent me here
Only when I use custom permalinks like
Code:
mydomain.cz/en/pagetitle
My custom permalink structure in the admin panel is
Code:
%language%/%parent%/%slug%/
Code:
# News Manager setup ("clanky" = "articles" in English):
RewriteRule ^clanky/tag/([^/.]+)/?$ index.php?id=clanky&tag=$1 [L]
RewriteRule ^clanky/post/([^/.]+)/?$ index.php?id=clanky&post=$1 [L]
RewriteRule ^clanky/page/([^/.]+)/?$ index.php?id=clanky&page=$1 [L]
RewriteRule ^clanky/archive/([^/.]+)/?$ index.php?id=clanky&archive=$1 [L]
# end News Manager
# To make custom permalinks with both languages work :)
RewriteRule ^/?$ cs/ [R,L] # optional
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(cs|en)/(.*?/)?([A-Za-z0-9-]+)/?$ index.php?id=$3&lang=$1 [QSA,L]
RewriteRule ^(cs|en)/?$ index.php?lang=$1 [QSA,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule /?([A-Za-z0-9-]+)/?$ index.php?id=$1 [QSA,L]
Everythings works as it is supposed be, except the news from News Manager articles. You can see News Manager lines (starting with "clanky", "clanky" is my menu tam with news from News Manager), which are there for Fancy URLs (you can use Fancy URLs and News Manager without these lines in .htaccess). What should I add or change about the News Manager lines to make it work with this plugin and Fancy URLs?
// an unimportant part from here
I would prefer using permalinks which add /language_code/ to the address only with non-default languages. It means that when my site is Czech as a default and English as a secondary language, it won't make addresses with /en/ with Czech setup. Only after setting up the language it will add /en/ to the address.
In this case, the custom permalink structure is
Code:
%nondefaultlanguage%/%parent%/%slug%/
Code:
RewriteRule ^(.*?/)?([A-Za-z0-9-]+)/?$ index.php?id=$2&lang=en
// the end of the unimportant part
Thanks for your help.
Tomáš Janeček - Multilingual personal website powered by GetSimple
» The little I did for GetSimple
» The little I did for GetSimple