2012-09-19, 20:40:43
Hey,
I´ve still Problems with GS ...
what I´m doing wrong, what I´ve forgot?
(at least I don´t know the htaccess commands ...)
If I insert to /admin/inc/basic.php, at the beginning of function find_url(), that:it doesn´t work with %nondefaultlanguage% anymore.
But I will anyway give an Error 404
With this config, I get these non-working URLs:
http://localhost/onlinestuff/GetSimple/.html > no access, Error 403
http://localhost/onlinestuff/GetSimple/index/contenta.html > Error 404
http://localhost/onlinestuff/GetSimple/de/.html > Error 404
http://localhost/onlinestuff/GetSimple/de/index/contenta.html > Error 404
with Custom Permalink: %nondefaultlanguage%/%parent%/%slug%/
I got
http://localhost/onlinestuff/GetSimple/index/contenta/ > Error 404
http://localhost/onlinestuff/GetSimple/de/ > Error 404
http://localhost/onlinestuff/GetSimple/de/index/contenta/ > Error 404
What can I do???
Thanks a lot for help,
regards, B.
I´ve still Problems with GS ...
what I´m doing wrong, what I´ve forgot?
- install GS 3.1.2 and I18N 3.0.5.
- Establish two hierachical sites, wellcome and contenta, in english and german.
- add i18 into template Innovation to get_header() and get_navigation() and get_component()
- set Custom Permalink Structure: %nondefaultlanguage%/%parent%/%slug%.html, using Fancy URLs
- add to the htaccess that:
Code:
RewriteBase /onlinestuff/GetSimple/
RewriteRule ^/?$ en/ [R,L] # optional
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(fr|de)/(.*?/)?([A-Za-z0-9-]+)/?$ index.php?id=$3&lang=$1 [QSA,L]
RewriteRule ^(fr|de)/?$ index.php?lang=$1 [QSA,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*?/)?([A-Za-z0-9-]+)/?$ index.php?id=$2&lang=en [QSA,L]
If I insert to /admin/inc/basic.php, at the beginning of function find_url(), that:
Code:
if ($parent=='index') $parent='';
But I will anyway give an Error 404
With this config, I get these non-working URLs:
http://localhost/onlinestuff/GetSimple/.html > no access, Error 403
http://localhost/onlinestuff/GetSimple/index/contenta.html > Error 404
http://localhost/onlinestuff/GetSimple/de/.html > Error 404
http://localhost/onlinestuff/GetSimple/de/index/contenta.html > Error 404
with Custom Permalink: %nondefaultlanguage%/%parent%/%slug%/
I got
http://localhost/onlinestuff/GetSimple/index/contenta/ > Error 404
http://localhost/onlinestuff/GetSimple/de/ > Error 404
http://localhost/onlinestuff/GetSimple/de/index/contenta/ > Error 404
What can I do???
Thanks a lot for help,
regards, B.