Hallo Alfred
Darf ich nochmal kurz der Übersichtlichkeit her zusammenfassen ob ich das korrekt verstanden habe mit dem Einbau der Version ohne /de für Deutsch ?
In der Datei templates/dein_template/source/boxes/languages.php sind keinerlei Änderungen zu machen?
Im Verzeichnis /includes/extra/seo_url_mod/ die Datei add_lng_to_link_in_seo_url_shopstat.php mit folgendem Inhalt erstellen.
<?phpdefined('ADD_DEFAULT_LANGUAGE_TO_LINK') OR
define ('ADD_DEFAULT_LANGUAGE_TO_LINK', false);defined('ADD_LANGUAGE_TO_LINK') OR
define ('ADD_LANGUAGE_TO_LINK', xtc_db_num_rows
(xtc_db_query
(" SELECT 'id'
FROM " . TABLE_LANGUAGES
. (!defined('RUN_MODE_ADMIN') && isset($_SESSION['customers_status']['customers_status']) && $_SESSION['customers_status']['customers_status'] == '0' ?
" WHERE status_admin = '1'" : " WHERE status = '1'") )) > 1 ?
true : false); Dann in der Datei .htaccess im Shoproot-Verzeichnis folgende Direktiven
##-- Use colon delimiter ":" for SEO-URLS (default setting)
##-- Categories (:::)
RewriteRule :::([_0-9]+):([_0-9]+)\.html$ index.php?cPath=$1&page=$2 [QSA,L]
RewriteRule :::([_0-9]+)\.html$ index.php?cPath=$1 [QSA,L]
##-- Products (::)
RewriteRule ::(.+)\.html$ product_info.php?products_id=$1 [QSA,L]
##-- Content (:_:)
RewriteRule :_:([0-9]+)\.html$ shop_content.php?coID=$1 [QSA,L]
##-- Manufacturers (:.:)
RewriteRule :\.:([_0-9]+):([_0-9]+)\.html$ index.php?manufacturers_id=$1&page=$2 [QSA,L]
RewriteRule :\.:([0-9]+)\.html$ index.php?manufacturers_id=$1 [QSA,L]
##-- Use dash delimiter "-" for SEO-URLS (alternative setting i.e. for windows servers)
##-- Categories (---)
RewriteRule ---([_0-9]+)-([_0-9]+)\.html$ index.php?cPath=$1&page=$2 [QSA,L]
RewriteRule ---([_0-9]+)\.html$ index.php?cPath=$1 [QSA,L]
##-- Products (--)
RewriteRule --(.+)\.html$ product_info.php?products_id=$1 [QSA,L]
##-- Content (-_-)
RewriteRule -_-([0-9]+)\.html$ shop_content.php?coID=$1 [QSA,L]
##-- Manufacturers (-.-)
RewriteRule -\.-([_0-9]+)-([_0-9]+)\.html$ index.php?manufacturers_id=$1&page=$2 [QSA,L]
RewriteRule -\.-([0-9]+)\.html$ index.php?manufacturers_id=$1 [QSA,L]
mit diesen Direktiven ersetzen.
RewriteRule ^([a-z]{2})/$ index.php?language=$1 [QSA,L]
RewriteRule ^([a-z]{2})/index.php$ index.php?language=$1 [QSA,L]
RewriteRule ^([a-z]{2})/login_admin.php$ login_admin.php?language=$1 [QSA,L]
RewriteRule ^([a-z]{2})/specials.php$ specials.php?language=$1 [QSA,L]
RewriteRule ^([a-z]{2})/products_new.php$ products_new.php?language=$1 [QSA,L]
##-- Use colon delimiter ":" for SEO-URLS (default setting)
##-- Categories (:::)
RewriteRule ^([a-z]{2})/.*:::([_0-9]+):([_0-9]+)\.html$ index.php?cPath=$2&page=$3&language=$1 [QSA,L]
RewriteRule ^([a-z]{2})/.*:::([_0-9]+)\.html$ index.php?cPath=$2&language=$1 [QSA,L]
RewriteRule :::([_0-9]+):([_0-9]+)\.html$ index.php?cPath=$1&page=$2 [QSA,L]
RewriteRule :::([_0-9]+)\.html$ index.php?cPath=$1 [QSA,L]
##-- Products (::)
RewriteRule ^([a-z]{2})/.*::(.+)\.html$ product_info.php?products_id=$2&language=$1 [QSA,L]
RewriteRule ::(.+)\.html$ product_info.php?products_id=$1 [QSA,L]
##-- Content (:_:)
RewriteRule ^([a-z]{2})/.*:_:([0-9]+)\.html$ shop_content.php?coID=$2&language=$1 [QSA,L]
RewriteRule :_:([0-9]+)\.html$ shop_content.php?coID=$1 [QSA,L]
##-- Manufacturers (:.:)
RewriteRule ^([a-z]{2})/.*:.:([_0-9]+):([_0-9]+)\.html$ index.php?manufacturers_id=$2&page=$3&language=$1 [QSA,L]
RewriteRule ^([a-z]{2})/.*:.:([0-9]+)\.html$ index.php?manufacturers_id=$2&language=$1 [QSA,L]
RewriteRule :.:([_0-9]+):([_0-9]+)\.html$ index.php?manufacturers_id=$1&page=$2 [QSA,L]
RewriteRule :.:([0-9]+)\.html$ index.php?manufacturers_id=$1 [QSA,L]
##-- Use dash delimiter "-" for SEO-URLS (alternative setting i.e. for windows servers)
##-- Categories (---)
RewriteRule ^([a-z]{2})/.*---([_0-9]+)-([_0-9]+)\.html$ index.php?cPath=$2&page=$3&language=$1 [QSA,L]
RewriteRule ^([a-z]{2})/.*---([_0-9]+)\.html$ index.php?cPath=$2&language=$1 [QSA,L]
RewriteRule ---([_0-9]+)-([_0-9]+)\.html$ index.php?cPath=$1&page=$2 [QSA,L]
RewriteRule ---([_0-9]+)\.html$ index.php?cPath=$1 [QSA,L]
##-- Products (--)
RewriteRule ^([a-z]{2})/.*--(.+)\.html$ product_info.php?products_id=$2&language=$1 [QSA,L]
RewriteRule --(.+)\.html$ product_info.php?products_id=$1 [QSA,L]
##-- Content (-_-)
RewriteRule ^([a-z]{2})/.*-_-([0-9]+)\.html$ shop_content.php?coID=$2&language=$1 [QSA,L]
RewriteRule -_-([0-9]+)\.html$ shop_content.php?coID=$1 [QSA,L]
##-- Manufacturers (-.-)
RewriteRule ^([a-z]{2})/.*-.-([_0-9]+)-([_0-9]+)\.html$ index.php?manufacturers_id=$2&page=$3&language=$1 [QSA,L]
RewriteRule ^([a-z]{2})/.*-.-([0-9]+)\.html$ index.php?manufacturers_id=$2&language=$1 [QSA,L]
RewriteRule -.-([_0-9]+)-([_0-9]+)\.html$ index.php?manufacturers_id=$1&page=$2 [QSA,L]
RewriteRule -.-([0-9]+)\.html$ index.php?manufacturers_id=$1 [QSA,L]
Im Verziechnis includes/extra/modules/set_language_sessions/ eine Datei mit dem Namen set_default_language.php und folgendem Inhalt erstellen
<?php$scriptnames = ['index.php', 'product_info.php', 'shop_content.php', 'products_new.php', 'specials.php', 'login_admin.php']; if (!isset($_GET['language']) && SEARCH_ENGINE_FRIENDLY_URLS
== 'true' && in_array(basename($PHP_SELF), $scriptnames)) { $_GET['language'] = DEFAULT_LANGUAGE
;} In der Datei includes/extra/seo_url_mod/seo_url_shopstat.php bei ca. Zeile 108 folgende Codezeile
return self::$host_array[$this->language_id][$connection];
mit dieser ersetzen.
return self::$host_array[$this->language_id][$connection].self::get_link_params(false);