2012-07-28, 00:00:53
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..?
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..?