2014-03-26, 07:00:22
try in template:
<a href="<?php get_site_url(); ?>de">DE</a>
slug in settings should look like that:
%nondefaultlanguage%/%parent%/%slug%/
nondefaultlanguage is not giving a lang in http://www.yourpage.com/sitename
and giving a lang in other lang ttp://www.yourpage.com/de/sitename
i'm using a Use Fancy URLs
and my .htacces look like:
where the line
RewriteRule ^(cz|du|en|fr)/(.*?/)?([A-Za-z0-9-]+)/?$ index.php?id=$3&lang=$1 [QSA,L]
RewriteRule ^(cz|du|en|fr)/?$ index.php?lang=$1 [QSA,L]
is giving me a installed language cz|du| and other..
<a href="<?php get_site_url(); ?>de">DE</a>
slug in settings should look like that:
%nondefaultlanguage%/%parent%/%slug%/
nondefaultlanguage is not giving a lang in http://www.yourpage.com/sitename
and giving a lang in other lang ttp://www.yourpage.com/de/sitename
i'm using a Use Fancy URLs
and my .htacces look like:
PHP Code:
AddDefaultCharset UTF-8
Options -Indexes
# blocks direct access to the XML files - they hold all the data!
<Files ~ "\.xml$">
Order allow,deny
Deny from all
Satisfy All
</Files>
<Files sitemap.xml>
Order allow,deny
Allow from all
Satisfy All
</Files>
RewriteEngine on
# Usually it RewriteBase is just '/', but
# replace it with your subdirectory path
RewriteBase /
RewriteRule ^(cz|du|en|fr)/(.*?/)?([A-Za-z0-9-]+)/?$ index.php?id=$3&lang=$1 [QSA,L]
RewriteRule ^(cz|du|en|fr)/?$ 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]
RewriteRule ^(cz|du|en|fr)/(.*?/)?([A-Za-z0-9-]+)/?$ index.php?id=$3&lang=$1 [QSA,L]
RewriteRule ^(cz|du|en|fr)/?$ index.php?lang=$1 [QSA,L]
is giving me a installed language cz|du| and other..
user plugin: scroll to top