I18N + News Manager = htaccess RewriteRules? - Printable Version +- GetSimple Support Forum (http://get-simple.info/forums) +-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3) +--- Forum: Plugins (http://get-simple.info/forums/forumdisplay.php?fid=13) +--- Thread: I18N + News Manager = htaccess RewriteRules? (/showthread.php?tid=3382) |
I18N + News Manager = htaccess RewriteRules? - jtstyle - 2012-07-28 Maybe someone has had this issue or posted previously. I'm using I18N for international languages and the News Manager, however, I'm having trouble getting the correct htaccess RewriteRules to satisfy the News Manager posts using Fancy URLs. Example looks fine @: domain.com/en/news/ Example breaks @: domain.com/en/news/post/example-news-post when clicking news link, and get (We are sorry, but the page you are looking for does not exist.) Custom Permalink Structure: %language%/%parent%/%slug%/ Current .htaccess file looks like: RewriteBase / RewriteRule ^/?$ en/ [R,L] # optional RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(en|lt)/(.*?/)?([A-Za-z0-9-]+)/?$ index.php?id=$3&lang=$1 [QSA,L] RewriteRule ^(en|lt)/?$ index.php?lang=$1 [QSA,L] RewriteRule ^news/tag/([^/.]+)/?$ index.php?id=news&tag=$1 [L] RewriteRule ^news/post/([^/.]+)/?$ index.php?id=news&post=$1 [L] RewriteRule ^news/page/([^/.]+)/?$ index.php?id=news&page=$1 [L] RewriteRule ^news/archive/([^/.]+)/?$ index.php?id=news&archive=$1 [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule /?([A-Za-z0-9_-]+)/?$ index.php?id=$1 [QSA,L] I'm certain it's a simple fix and have tried a few variations but can't get it to work correctly. Any suggestions..? RE: I18N + News Manager = htaccess RewriteRules? - TeeJay - 2013-04-05 I also got to this situation today. I set up custom permalink structure, which is Code: %language%/%parent%/%slug%/ My previous .htaccess file looked like this (Fancy URLs on even in the News Manager) Code: RewriteEngine on When setting up the I18N custom permalink structure to have adresses like... Code: myaddress.com/en/news/ Code: # News Manager nastaveni: However, the articles don't work. The can't show up, there is an error that the requested article couldn't be found. I think there is a language variable needed in front of "clanky/" in the News Manager text field. Interesting is that in the setup of the News Manager there is no more the option for Fancy URLs. Thanks |