Neuigkeiten
  • Die modified eCommerce Shopsoftware ist kostenlos, aber nicht umsonst.
    Spenden
  • Damit wir die modified eCommerce Shopsoftware auch zukünftig kostenlos anbieten können:
    Spenden
  • Thema: Suchmaschinenfreundliche Urls - das leidige Thema

    stedre

    • Frisch an Board
    • Beiträge: 50
    • Geschlecht:
    Suchmaschinenfreundliche Urls - das leidige Thema
    am: 02. Oktober 2012, 10:17:24
    Lebe Forum-Mitglieder,

    Bitte dringend um Hilfe.

    Der Shop läuft unter:

    https://shop.meinedomain.com

    (also mit ssl) und befindet sich im Unterordner /katalog

    die Domain ist auf den Unterordner gerichtet - alles Funktioniert.

    Einrichtung Suchmaschfr. Urls funktioniert nicht:

    - mode_rewrite ist auf dem Server aktiv;
    - Suchmaschfr. Urls ist im Shop eingeschaltet
    - der Cache wurde geleert

    _.htacces hab ich umgenannt in .htaccess und
    RewriteBase /shop
    hab ich geändert in
    RewriteBase /katalog

    Die .htaccess befindet sich im Ordner /katalog

    und hat folgenden Inhalt:
    Code: XML  [Auswählen]
    ##################

    ##-- $Id: _.htaccess 2670 2012-02-23 12:53:47Z dokuman $

    ##-- Default charset
    #AddDefaultCharset utf-8
    AddDefaultCharset ISO-8859-15

    ##-----------------------------------------
    ##- SEO Shopstat Modul (Hartmut König)
    ##-----------------------------------------
    <IfModule mod_rewrite.c>
      ##-- Initialize and enable rewrite engine
      RewriteEngine On

      ##-- EXAMPLE: If your shop is located at "http://www.yourdomain.com/shop",
      ##-- set the following line like e.g.: RewriteBase /shop
      RewriteBase /katalog

      ##-- Use canonical URLs
      ##-- redirect to www-domain, when www is missing and no subdomain given and not using an ssl-proxy
      RewriteCond %{HTTP:X-Forwarded-Server}   !^ssl\.webpack\.de$ [NC]
      RewriteCond %{HTTP:X-Forwarded-Server}   !^sslsites\.de$ [NC]
      RewriteCond %{HTTP_HOST}                 !^www\..* [NC]
      RewriteCond %{HTTP_HOST}                 !^.*\..*\..* [NC]
      RewriteCond %{HTTP_HOST}                 !^localhost(.*)$ [NC]
      RewriteCond %{REMOTE_ADDR}               !127.0.0.1$ [NC]
      RewriteRule ^(.*)                        http://www.%{HTTP_HOST}/$1 [R=301,L]

      #-- redirect /folder/index.php to /folder/ (i.e. hide index.php)
      RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/
      RewriteRule ^index\.php$ http://%{HTTP_HOST}/ [R=301,L]

      ##-- Sitemap
      RewriteRule ^sitemap(.*)\.html$ shop_content.php?coID=8 [QSA,L]

      ##----------------------------------------------------------------------------------
      ##-- When working with SEO-Urls you can decide, wheter to use a colon ":" or a dash "-" symbol
      ##-- (Windows Servers might have problems with colon as delimiter!)
      ##-- Change the delimiter symbol also in file "/inc/shopstat_functions.inc.php"
      ##----------------------------------------------------------------------------------

      ##-- Use colon delimiter ":" for SEO-URLS (default setting)
      ##-- Categories (:::)
      RewriteCond %{REQUEST_URI} (.*):::([_0-9]+):([_0-9]+)\.html$
      RewriteRule (.*):::([_0-9]+):([_0-9]+)\.html$ index.php?cPath=$2&page=$3 [QSA,L]
     RewriteCond %{REQUEST_URI} (.*):::([_0-9]+)\.html$
     RewriteRule (.*):::([_0-9]+)\.html$ index.php?cPath=$2 [QSA,L]

     ##-- Products (::)
     RewriteRule (.*)::(.+)\.html$ product_info.php?products_id=$2 [QSA,L]

     ##-- Content (:_:)
     RewriteRule (.*):_:([0-9]+)\.html$ shop_content.php?coID=$2 [QSA,L]

     ##-- Manufacturers (:.:)
     RewriteCond %{REQUEST_URI} (.*):.:([_0-9]+):([_0-9]+)\.html$
     RewriteRule (.*):.:([_0-9]+):([_0-9]+)\.html$ index.php?manufacturers_id=$2&page=$3 [QSA,L]
     RewriteCond %{REQUEST_URI} (.*):.:([_0-9]+)\.html$
     RewriteRule (.*):.:([0-9]+)\.html$ index.php?manufacturers_id=$2 [QSA,L]

     ##-- Use dash delimiter "-" for SEO-URLS
     ##-- Categories (---)
     #RewriteCond %{REQUEST_URI} (.*)---([_0-9]+)-([_0-9]+)\.html$
     #RewriteRule (.*)---([_0-9]+)-([_0-9]+)\.html$ index.php?cPath=$2&page=$3 [QSA,L]
     #RewriteCond %{REQUEST_URI} (.*)---([_0-9]+)\.html$
     #RewriteRule (.*)---([_0-9]+)\.html$ index.php?cPath=$2 [QSA,L]

     ##-- Products (--)
     #RewriteRule (.*)--(.+)\.html$ product_info.php?products_id=$2 [QSA,L]

     ##-- Content (-_-)
     #RewriteRule (.*)-_-([0-9]+)\.html$ shop_content.php?coID=$2 [QSA,L]

     ##-- Manufacturers (-.-)
     #RewriteCond %{REQUEST_URI} (.*)-.-([_0-9]+)-([_0-9]+)\.html$
     #RewriteRule (.*)-.-([_0-9]+)-([_0-9]+)\.html$ index.php?manufacturers_id=$2&page=$3 [QSA,L]
     #RewriteCond %{REQUEST_URI} (.*)-.-([_0-9]+)\.html$
     #RewriteRule (.*)-.-([0-9]+)\.html$ index.php?manufacturers_id=$2 [QSA,L]

    </IfModule>

    ###################
     

    Ich bekomme dennoch Fehlermeldung - möglicherweise muß ich in der .htaccess noch was ändern, weiß aber nicht was.

    Sicherlich könnt Ihr mir helfen.

    Vielen Dank - Gruß Stefan

    Linkback: https://www.modified-shop.org/forum/index.php?topic=22586.0

    flth

    • Mitglied
    • Beiträge: 157
    • Geschlecht:
    Re: Suchmaschinenfreundliche Urls - das leidige Thema
    Antwort #1 am: 02. Oktober 2012, 11:35:33
    Wenn deine Domain direkt auf den Shop zeigt (also ohne das /katalog in der Adresszeile) dann musst du das auch nicht in deiner .htaccess angeben.

    stedre

    • Frisch an Board
    • Beiträge: 50
    • Geschlecht:
    Re: Suchmaschinenfreundliche Urls - das leidige Thema
    Antwort #2 am: 02. Oktober 2012, 11:47:17
    Hallo  -

     :pro:  :thx:  :-B

    Das war die Rettung - ach ist das schön -

    Ich wünsche allen einen schönen Feiertag.

    Gruß Stefan
    2 Antworten
    2647 Aufrufe
    02. Mai 2013, 14:26:18 von msfrog
    6 Antworten
    4174 Aufrufe
    18. Juli 2012, 12:07:43 von olg
    8 Antworten
    6890 Aufrufe
    29. Juni 2018, 20:26:07 von baustelle
    6 Antworten
    2832 Aufrufe
    10. Februar 2017, 08:42:01 von cayuco
               
    anything