Antwort #6 am: 18. November 2017, 07:57:38
In der
.htaccess mußt du, wenn du suchmaschienenfreundliche URLs an hast, auch bei den Verlinkungen den Pfad '
testshop' mit angeben:
##-- Redirect error pages to Sitemap
##-- set the correct Path to ErrorDocument
ErrorDocument 400 /testshop/sitemap.html?error=400
ErrorDocument 401 /testshop/sitemap.html?error=401
ErrorDocument 402 /testshop/sitemap.html?error=402
ErrorDocument 403 /testshop/sitemap.html?error=403
ErrorDocument 404 /testshop/sitemap.html?error=404
ErrorDocument 500 /testshop/sitemap.html?error=500
##-- Use colon delimiter ":" for SEO-URLS (default setting)
##-- Categories (:::)
RewriteCond %{REQUEST_URI} (.*):::([_0-9]+):([_0-9]+)\.html$
RewriteRule (.*):::([_0-9]+):([_0-9]+)\.html$ testshop/index.php?cPath=$2&page=$3 [QSA,L]
RewriteCond %{REQUEST_URI} (.*):::([_0-9]+)\.html$
RewriteRule (.*):::([_0-9]+)\.html$ testshop/index.php?cPath=$2 [QSA,L]
##-- Products (::)
RewriteRule (.*)::(.+)\.html$ testshop/product_info.php?products_id=$2 [QSA,L]
##-- Content (:_:)
RewriteRule (.*):_:([0-9]+)\.html$ testshop/shop_content.php?coID=$2 [QSA,L]
##-- Manufacturers (:.:)
RewriteCond %{REQUEST_URI} (.*):.:([_0-9]+):([_0-9]+)\.html$
RewriteRule (.*):.:([_0-9]+):([_0-9]+)\.html$ testshop/index.php?manufacturers_id=$2&page=$3 [QSA,L]
RewriteCond %{REQUEST_URI} (.*):.:([_0-9]+)\.html$
RewriteRule (.*):.:([0-9]+)\.html$ testshop/index.php?manufacturers_id=$2 [QSA,L]
--------------------------
Und in der
includes/configure.phpmuß in der Zeile 24 ebenfalls
testshop stehen:
define('DIR_WS_CATALOG', '/testshop/'); // relative path required BG kgd