2013-06-17, 07:24:03
I have created another website which has to be on some kinda wicked hosting. GS keeps telling me that I haven't set up CHMOD 777, but I did and it's set correctly, still, I can create and delete articles and pages, so I don't care. The problem looks like it is some htaccess problem because the news posts aren't dealing with a custom permalink structure properly.
Look how the links look like - OK in the left sidebar, wrong (including %nondefaultlanguage% in the address) on the news page. See here http://ubytovanisetek.cz/aktuality/
Also after switching the site to English, the news page is empty!
The same site works ok on my VPS test server, so everything is correct.
The hosting provider told me that my htaccess should work properly, however, I think it doesn't.
I see there is no way how to make this okay, so I'm thinking about the solution, which will be...
Either hiding the menu item "News" or turning off switching languages (the problem are the permalinks actually), but...
... I got an idea that I could re-implement the way how links are built in the sidebar to the news page, I wouldn't mind not having "/en/" in the address on this extra page. Did anyone occurred this problem? Do you have an idea how to deal with this? Thanks for any suggestions
Look how the links look like - OK in the left sidebar, wrong (including %nondefaultlanguage% in the address) on the news page. See here http://ubytovanisetek.cz/aktuality/
Also after switching the site to English, the news page is empty!
The same site works ok on my VPS test server, so everything is correct.
The hosting provider told me that my htaccess should work properly, however, I think it doesn't.
Code:
# News Manager nastaveni:
# for Czech (default language - that's important, it's without /cs/ in the url)
RewriteRule ^aktuality/tag/([^/.]+)/?$ index.php?id=aktuality&tag=$1&lang=cs [L]
RewriteRule ^aktuality/post/([^/.]+)/?$ index.php?id=aktuality&post=$1&lang=cs [L]
RewriteRule ^aktuality/page/([^/.]+)/?$ index.php?id=aktuality&page=$1&lang=cs [L]
RewriteRule ^aktuality/archive/([^/.]+)/?$ index.php?id=aktuality&archive=$1&lang=cs [L]
# for English (secondary language)
RewriteRule ^en/aktuality/tag/([^/.]+)/?$ index.php?id=aktuality&tag=$1&lang=en [L]
RewriteRule ^en/aktuality/post/([^/.]+)/?$ index.php?id=aktuality&post=$1&lang=en [L]
RewriteRule ^en/aktuality/page/([^/.]+)/?$ index.php?id=aktuality&page=$1&lang=en [L]
RewriteRule ^en/aktuality/archive/([^/.]+)/?$ index.php?id=aktuality&archive=$1&lang=en [L]
# end News Manager
I see there is no way how to make this okay, so I'm thinking about the solution, which will be...
Either hiding the menu item "News" or turning off switching languages (the problem are the permalinks actually), but...
... I got an idea that I could re-implement the way how links are built in the sidebar to the news page, I wouldn't mind not having "/en/" in the address on this extra page. Did anyone occurred this problem? Do you have an idea how to deal with this? Thanks for any suggestions
Tomáš Janeček - Multilingual personal website powered by GetSimple
» The little I did for GetSimple
» The little I did for GetSimple