Hi,
I have a three-language page and
a ml-problem and questions to the URLs:
1. the startpages always ends up with a single .html-extension like:
-domainname.tld/.html (Forbidden, blank side)
-domainname.tld/en/.html (works but doesn´t feel good)
-domainname.tld/404.html (Oops! ...)
...
how I get rid oft these .html's??
Or I set an 'index' before it??
-------------------
about my settings:
for the .htaccess I used, based on yurifanboy, this
http://get-simple.info/forums/showthread...tilanguage
I´m using
userfriendly Url´s and
for switching language, I use this in the template.php
best, Bell.
I have a three-language page and
a ml-problem and questions to the URLs:
1. the startpages always ends up with a single .html-extension like:
-domainname.tld/.html (Forbidden, blank side)
-domainname.tld/en/.html (works but doesn´t feel good)
-domainname.tld/404.html (Oops! ...)
...
how I get rid oft these .html's??
Or I set an 'index' before it??
-------------------
about my settings:
for the .htaccess I used, based on yurifanboy, this
http://get-simple.info/forums/showthread...tilanguage
Code:
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^/?$ de/ [R,L] # redirect to language of your choice
RewriteRule ^(de|en|fr)/(.*)$ $2?lang=$1 [QSA,DPI] # replace with your languages
RewriteRule ^(.*);(\d+)([^\d/][^/]*)?/?$ $1$3?page=$2 [QSA,DPI] # for use with pagify plugin
#RewriteRule /?([A-Za-z0-9_-]+)/?$ index.php?id=$1 [QSA,L]
RewriteRule /?([A-Za-z0-9_-]+)\.html$ index.php?id=$1 [QSA,L]
RewriteRule ^ index.php [L] # for everything else show home page
I´m using
userfriendly Url´s and
Code:
%nondefaultlanguage%/%slug%.html
for switching language, I use this in the template.php
Code:
<a href="<?php echo htmlspecialchars(return_i18n_setlang_url('en')); ?>">english</a><br />
best, Bell.