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: Artikel Content sortieren v2

    Timm

    • Fördermitglied
    • Beiträge: 6.258
    Re: Artikel Content sortieren v2
    Antwort #15 am: 22. März 2018, 14:23:35
    Die .htaccess sollte aber noch im Root bleiben. Und da dann die ssl Weiterleitungen einkommentieren und schauen, ob es dann funktioniert.

    Gruß Timm

    Onlineshopper

    • Fördermitglied
    • Beiträge: 954
    • Geschlecht:
    Re: Artikel Content sortieren v2
    Antwort #16 am: 22. März 2018, 14:37:47
    Eine .htaccess habe ich im Root.
    Habe da aber noch nie etwas drin gemacht.

    Gibt es dazu irgendein Tutorial, wie und wo ich da was einstellen muss, damit das so ist, wie Du das geschildert hast?

    LG
    Nils

    Timm

    • Fördermitglied
    • Beiträge: 6.258
    Re: Artikel Content sortieren v2
    Antwort #17 am: 22. März 2018, 15:13:36

    Onlineshopper

    • Fördermitglied
    • Beiträge: 954
    • Geschlecht:
    Re: Artikel Content sortieren v2
    Antwort #18 am: 22. März 2018, 19:56:18
    Also wenn ich in der .htaccess die Rauten entfernen, wie bei Ronald in der Anleitung, dann kann ich mich weder registrieren, noch kann ich die Informationen, die ich bestätigen muss, lesen.

    LG
    Nils

    Timm

    • Fördermitglied
    • Beiträge: 6.258
    Re: Artikel Content sortieren v2
    Antwort #19 am: 22. März 2018, 20:32:59
    poste doch mal die angepasste .htaccess und die 4 wichtigen Zeilen der includes/configure.php. Und stell beim Hoster auf jeden Fall ssl erzwingen aus. Kann auch dauerhafte 301 Weiterleitungen heißen. Und schreib uns, was  deine bevorzugte Domain ist. Ob mit oder ohne www.

    Glaub das geht schneller.

    Gruß Timm

    hpzeller

    • Experte
    • Beiträge: 4.129
    • Geschlecht:
    Re: Artikel Content sortieren v2
    Antwort #20 am: 22. März 2018, 20:41:10
    @Hanspeter
    Da steht leider nichts drin.
    [...]

    Vorschlag, setze im Admin unter  Erw. Konfiguration -> Logging Optionen -> Error Reporting auf admin, siehe Bild.

    [ Für Gäste sind keine Dateianhänge sichtbar ]

    Danach werden dir etwaige Fehlermeldungen direkt im Footer der aufgerufenen Seite angezeigt.

    Gruss
    Hanspeter

    Onlineshopper

    • Fördermitglied
    • Beiträge: 954
    • Geschlecht:
    Re: Artikel Content sortieren v2
    Antwort #21 am: 22. März 2018, 20:57:07
    @Timm
    Hier meine .htaccess
    Code: PHP  [Auswählen]
    ##-- $Id: _.htaccess 10191 2016-08-02 10:40:18Z Tomcraft $

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

    ##-- Disable the server signature
    ServerSignature Off

    ##-- Turn off ETags in HTTP-header (use both directives)
    <IfModule mod_headers.c>
      Header unset ETag
      RequestHeader unset Proxy
    </IfModule>
    FileETag None

    ##-- When caching of gzipped JS and CSS files is used, enable this setting
    <IfModule mod_headers.c>
      Header set Vary Accept-Encoding
    </IfModule>

    ##-- when using Provider 1&1 set the following lines to activate PHP5
    #AddType x-mapp-php5 .php
    #AddHandler x-mapp-php5 .php

    # Disable directory browsing (disabled by default as this causes problems on some servers)
    #Options All -Indexes

    ##-- Enable the compression for any type of content
    <IfModule mod_deflate.c>
      <FilesMatch "\\.(js|css|html|htm|php|xml|jpg|jpeg|png|gif|svg|woff)$">
        SetOutputFilter DEFLATE
      </FilesMatch>
    </IfModule>

    ##-- Customization of HTTP request and response headers
    <IfModule mod_headers.c>
      <FilesMatch "\\.(ico|jpe?g|png|gif|swf|flv|svg)$">
        Header set Cache-Control "max-age=2592000, public"
      </FilesMatch>
      <FilesMatch "\\.(css|woff)$">
        Header set Cache-Control "max-age=604800, public"
      </FilesMatch>
      <FilesMatch "\\.(js)$">
        Header set Cache-Control "max-age=604800, private"
      </FilesMatch>
      <FilesMatch "\\.(xml|txt)$">
        Header set Cache-Control "max-age=604800, public, must-revalidate"
      </FilesMatch>
      <FilesMatch "\\.(html|htm|php)$">
        Header set Cache-Control "max-age=1, private, must-revalidate"
      </FilesMatch>
    </IfModule>

    ##-- Generation of Expires and Cache-Control HTTP headers
    <IfModule mod_expires.c>
      ExpiresActive On
      ExpiresDefault "access plus 1 seconds"
      ExpiresByType image/gif "access plus 2592000 seconds"
      ExpiresByType image/jpg "access plus 2592000 seconds"
      ExpiresByType image/jpeg "access plus 2592000 seconds"
      ExpiresByType image/png "access plus 2592000 seconds"
      ExpiresByType image/svg+xml "access plus 2592000 seconds"
      ExpiresByType text/html "access plus 1 seconds"
      ExpiresByType text/css "access plus 604800 seconds"
      ExpiresByType text/javascript "access plus 604800 seconds"
      ExpiresByType application/x-javascript "access plus 604800 seconds"
      ExpiresByType application/javascript "access plus 604800 seconds"
      ExpiresByType text/x-component "access plus 604800 seconds"
      ExpiresByType application/font-woff "access plus 604800 seconds"
      ExpiresByType image/x-icon "access plus 604800 seconds"

      <IfModule mod_headers.c>
        Header append Cache-Control "public"
      </IfModule>  
    </IfModule>

    ##-- Configure php_flags if necessary
    ##-- BEGIN - use IfModule clause if PHP runs in CGI mode, otherwise just uncomment the lines with php_flag...
    #<IfModule mod_php.c>

      ##-- Warn when arguments are passed by reference at function call time (from PHP5 allow_call_time_pass_reference is deprecated)
     #php_flag allow_call_time_pass_reference on

      ##-- Disable transparent sid support PHP-default is off (XTC Session only on first visit)
     #php_flag session.use_trans_sid off

      ##-- set suhosin flags because of errors with attributes (for webhosters with suhosin hardening patch enabled)
     #php_value suhosin.post.max_array_depth 0
     #php_value suhosin.post.max_array_index_length 0
     #php_value suhosin.post.max_vars 0
     #php_value suhosin.request.max_array_depth 0
     #php_value suhosin.request.max_array_index_length 0
     #php_value suhosin.request.max_vars 0

      ##-- set suhosin flags to have unencrypted session data, affecting "whos_online" & "shopping cart" (for webhosters with suhosin hardening patch enabled)patch enabled
     #php_value suhosin.session.encrypt Off
     #php_value suhosin.session.cryptkey ''

    ##-- END - use IfModule clause if PHP runs in CGI mode, otherwise just uncomment the lines with php_flag...
    #</IfModule>

    ##-- Redirect error pages to Sitemap
    ##-- set the correct Path to ErrorDocument
    ErrorDocument 400 /sitemap.html?error=400
    ErrorDocument 401 /sitemap.html?error=401
    ErrorDocument 402 /sitemap.html?error=402
    ErrorDocument 403 /sitemap.html?error=403
    ErrorDocument 404 /sitemap.html?error=404
    ErrorDocument 500 /sitemap.html?error=500

    ##-----------------------------------------
    ##- SEO Shopstat Modul (Hartmut Koenig)
    ##-----------------------------------------
    <IfModule mod_rewrite.c>
      ##-- Initialize and enable rewrite engine
     ##-- Documentation http://httpd.apache.org/docs/misc/rewriteguide.html
     RewriteEngine On

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

      ##-- disallow access to dotfiles (.htaccess, .svn, .git, etc.)
     #RedirectMatch 403 /\.
     
      ##-- Use canonical URLs
     ##-- Use SSL-Proxy
     ##-- HostEurope
     #RewriteCond %{HTTP:X-Forwarded-Server}   !^ssl\.webpack\.de$ [NC]
     ##-- 1und1
     #RewriteCond %{HTTP:X-Forwarded-Server}   !^ssl\.kundenserver\.de$ [NC]
     ##-- domainFACTORY
     #RewriteCond %{HTTP:X-Forwarded-Server}   !^sslsites\.de$ [NC]
     ##-- All-Inkl
     #RewriteCond %{HTTP:X-Forwarded-Server}   !^ssl-account\.com$ [NC]
     ##-- Strato
     #RewriteCond %{HTTP:X-Forwarded-Server}   !^www\.ssl-id\.de$ [NC]
     
      ##-- redirect to http www-domain, when www is missing and no subdomain given and not using an ssl-proxy
     RewriteCond %{HTTP_HOST}                 !^www\. [NC]
      RewriteCond %{HTTP_HOST}                 !\.(.*)\. [NC]
      RewriteCond %{HTTP_HOST}                 !^localhost [NC]
      RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

      ##-- redirect to https www-domain, when www is missing and no subdomain given and not using an ssl-proxy
     #RewriteCond %{HTTP_HOST}                 !^www\. [NC]
     #RewriteCond %{HTTP_HOST}                 !\.(.*)\. [NC]
     #RewriteCond %{HTTP_HOST}                 !^localhost [NC]
     #RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
     RewriteCond %{HTTPS} off
      RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

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

      ##----------------------------------------------------------------------------------
     ##-- When working with SEO-Urls you can decide, whether 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 (:::)
     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]
    </IfModule>
     

    @Hanspeter
    Das steht bei mir dann drin:
    Code: PHP  [Auswählen]
    Exception E_WARNING:
    Type    E_WARNING
    Message mysqli_query() expects parameter 1 to be mysqli, null given
    File    /html/shop_neu/inc/db_functions_mysqli.inc.php
    Line    227
    Backtrace #0    /html/shop_neu/admin/includes/extra/functions/99_kundenumfrage.php called at Line 5
    Backtrace #1    /html/shop_neu/admin/includes/extra/functions/99_kundenumfrage.php called at Line 16
    Backtrace #2    /html/shop_neu/admin/includes/application_top.php called at Line 139
    Backtrace #3    /html/shop_neu/admin/configuration.php called at Line 19
    Type    E_WARNING
    Message mysqli_errno() expects parameter 1 to be mysqli, null given
    File    /html/shop_neu/inc/db_functions_mysqli.inc.php
    Line    227
    Backtrace #0    /html/shop_neu/admin/includes/extra/functions/99_kundenumfrage.php called at Line 5
    Backtrace #1    /html/shop_neu/admin/includes/extra/functions/99_kundenumfrage.php called at Line 16
    Backtrace #2    /html/shop_neu/admin/includes/application_top.php called at Line 139
    Backtrace #3    /html/shop_neu/admin/configuration.php called at Line 19
    Type    E_WARNING
    Message mysqli_error() expects parameter 1 to be mysqli, null given
    File    /html/shop_neu/inc/db_functions_mysqli.inc.php
    Line    227
    Backtrace #0    /html/shop_neu/admin/includes/extra/functions/99_kundenumfrage.php called at Line 5
    Backtrace #1    /html/shop_neu/admin/includes/extra/functions/99_kundenumfrage.php called at Line 16
    Backtrace #2    /html/shop_neu/admin/includes/application_top.php called at Line 139
    Backtrace #3    /html/shop_neu/admin/configuration.php called at Line 19
    Type    E_WARNING
    Message mysqli_num_rows() expects parameter 1 to be mysqli_result, null given
    File    /html/shop_neu/inc/db_functions_mysqli.inc.php
    Line    292
    Backtrace #0    /html/shop_neu/admin/includes/extra/functions/99_kundenumfrage.php called at Line 7
    Backtrace #1    /html/shop_neu/admin/includes/extra/functions/99_kundenumfrage.php called at Line 16
    Backtrace #2    /html/shop_neu/admin/includes/application_top.php called at Line 139
    Backtrace #3    /html/shop_neu/admin/configuration.php called at Line 19
     

    Code: PHP  [Auswählen]
    Exception E_USER_WARNING:
    Type    E_USER_WARNING
    Message -

    select questions_name from questions where questions_id = ''
    File    /html/shop_neu/inc/db_functions_mysqli.inc.php
    Line    161
    Backtrace #0    /html/shop_neu/admin/includes/extra/functions/99_kundenumfrage.php called at Line 5
    Backtrace #1    /html/shop_neu/admin/includes/extra/functions/99_kundenumfrage.php called at Line 16
    Backtrace #2    /html/shop_neu/admin/includes/application_top.php called at Line 139
    Backtrace #3    /html/shop_neu/admin/configuration.php called at Line 19
     

    Code: PHP  [Auswählen]
    Exception E_NOTICE:
    Type    E_NOTICE
    Message Undefined variable: address
    File    /html/shop_neu/admin/includes/extra/functions/99_kundenumfrage.php
    Line    19
    Backtrace #0    /html/shop_neu/admin/includes/application_top.php called at Line 139
    Backtrace #1    /html/shop_neu/admin/configuration.php called at Line 19
    Type    E_NOTICE
    Message Undefined index: parameters
    File    /html/shop_neu/admin/includes/extra_menu.php
    Line    97
    Backtrace #0    /html/shop_neu/admin/includes/column_left.php called at Line 49
    Backtrace #1    /html/shop_neu/admin/includes/column_left.php called at Line 79
    Backtrace #2    /html/shop_neu/admin/includes/header.php called at Line 204
    Backtrace #3    /html/shop_neu/admin/configuration.php called at Line 158
    Type    E_NOTICE
    Message Use of undefined constant TEXT_PAYPAL_TAB_TRANSACTIONS - assumed 'TEXT_PAYPAL_TAB_TRANSACTIONS'
    File    /html/shop_neu/includes/external/paypal/modules/column_left.php
    Line    27
    Backtrace #0    /html/shop_neu/admin/includes/column_left.php called at Line 118
    Backtrace #1    /html/shop_neu/admin/includes/header.php called at Line 204
    Backtrace #2    /html/shop_neu/admin/configuration.php called at Line 158
     

    Der Adminordner hat einen anderen Ordnernamen. Habe den hier nur geändert.

    LG
    Nils

    Timm

    • Fördermitglied
    • Beiträge: 6.258
    Re: Artikel Content sortieren v2
    Antwort #22 am: 22. März 2018, 21:14:13
    Code: XML  [Auswählen]
    ##-- redirect to http www-domain, when www is missing and no subdomain given and not using an ssl-proxy
     RewriteCond %{HTTP_HOST}                 !^www\. [NC]
      RewriteCond %{HTTP_HOST}                 !\.(.*)\. [NC]
      RewriteCond %{HTTP_HOST}                 !^localhost [NC]
      RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

    Wieder einkommentieren mit #. DU willst doch nicht zu http weiterleiten, sondern zu https.

    Deshalb in diesem Teil die # entfernen, wenn es zu https://www.deinedomain.com gehen soll

    Code: XML  [Auswählen]
    ##-- redirect to https www-domain, when www is missing and no subdomain given and not using an ssl-proxy
    RewriteCond %{HTTP_HOST}                 !^www\. [NC]
    RewriteCond %{HTTP_HOST}                 !\.(.*)\. [NC]
    RewriteCond %{HTTP_HOST}                 !^localhost [NC]
    RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
    RewriteCond %{HTTPS} off
    RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

    Wenn es zu https://deinedomain.com gehen soll, dann zieh dir mal die neueste .htaccess aus der 2.0.3.0. und leg die im Root ab. Dort ist dann auch der Teil drin für non www

    Code: XML  [Auswählen]
    ##-- redirect to https non-www-domain, when no subdomain given and not using an ssl-proxy
    RewriteCond %{SERVER_PORT} !^443$ [OR]
    RewriteCond %{HTTP_HOST} ^www\. [NC]
    RewriteCond %{HTTP_HOST} ^(?:www\.)?(.+)$ [NC]
    RewriteRule ^ https://%1%{REQUEST_URI} [R=301,L]

    kannst du aber auch in deine einfügen.

    Wichtig ist, dass es in der htaccess und der configure.php gleich ist ob mit oder ohne www!!!

    Deshalb solltest du eigentlich die Zeilen auch mit posten und sagen, was du präferierst. Aber das wirst du wahrscheinlich nun selbst hinkriegen.

    Gruß Timm

    P.S.
    1) Unabhängig davon solltest du die roten Balken für Tempo und Kontrolle responsiv machen. Dein Shop ist auf dem Smartphone nur Halb so groß bei solchen Artikeln.

    2) Die Fehlermeldungen bzgl des Kundenfragemoduls bei Registrierung hast du im passenden Thread zum Modul ja schon gestellt und da hatte ich dir eine mögliche Fehlerquelle genannt, wo du aber nicht drauf geantwortet hast. Ging um überschriebene Dateien.

    Onlineshopper

    • Fördermitglied
    • Beiträge: 954
    • Geschlecht:
    Re: Artikel Content sortieren v2
    Antwort #23 am: 23. März 2018, 00:51:27
    Ich habe das jetzt mal so gemacht, wie Du geschrieben hast.
    Wenn ich mich dann aber als Kunden registrieren möchte und das Formular dann abschicken will, dann lädt er einfach die Seite neu und alles ist wieder leer.
    Entweder bin ich zu dusselig oder es ist einfach zu spät heute.

    Zitat
    Deshalb solltest du eigentlich die Zeilen auch mit posten und sagen, was du präferierst
    Code: PHP  [Auswählen]
    // server
      defined('HTTP_SERVER') or define('HTTP_SERVER', 'https://der-materialspezialist.com'); // eg, http://localhost - should not be empty for productive servers
      defined('HTTPS_SERVER') or define('HTTPS_SERVER', 'https://der-materialspezialist.com'); // eg, https://localhost - should not be empty for productive servers
     

    Wäre mir allerdings lieber, wenn immer https://www.der-materialspezialist.com dort steht.

    Zitat
    Unabhängig davon solltest du die roten Balken für Tempo und Kontrolle responsiv machen. Dein Shop ist auf dem Smartphone nur Halb so groß bei solchen Artikeln.

    Das hatte Ronald bei mir eingebaut. Frag mich nicht, wo er wie und was gemacht hat.
    Ich glaube ich muss mir mal angewöhnen, wenn ich etwas in Auftrag gebe, dass mir mitgeteilt wird, wo etwas geändert wird. Ist zwar ein bedauerlicher Einzelfall, dass Ronald so etwas passiert ist aber wenn der Fall eintritt, dann hat man den Salat.

    Zitat
    Die Fehlermeldungen bzgl des Kundenfragemoduls bei Registrierung hast du im passenden Thread zum Modul ja schon gestellt und da hatte ich dir eine mögliche Fehlerquelle genannt, wo du aber nicht drauf geantwortet hast. Ging um überschriebene Dateien.

    Sorry da war ich wohl verwirrt. Hatte das aktuelle Responsive Template noch mal von Torsten bekommen. Bin da aber nicht bei gegangen, weil mir da zu viele Sachen geändert wurden und ich nicht weiß, wo etwas gemacht wurde.

    Im übrigen wird das Kundenmodul jetzt wieder bei der Registration angezeigt, allerdings werden im Errorlog im Backend immer noch die ganzen Fehlermeldungen ausgegeben.

    PS: Übrigens suche ich noch jemanden wie Ronald, der hin und wieder mal etwas neues einbaut oder auch mal etwas updatet.

    LG
    Nils

    Ceciro

    • Fördermitglied
    • Beiträge: 449
    • Geschlecht:
    Re: Artikel Content sortieren v2
    Antwort #24 am: 23. März 2018, 01:00:23
    In Bezug auf die roten Balken, suche in der .css

    Code: CSS  [Auswählen]
    .process_inner_wrapper {width: 460px;

    und ersetze mit

    Code: CSS  [Auswählen]
    .process_inner_wrapper {width: 70%;

    Gruß Cicero

    Onlineshopper

    • Fördermitglied
    • Beiträge: 954
    • Geschlecht:
    Re: Artikel Content sortieren v2
    Antwort #25 am: 23. März 2018, 01:22:24
    Danke Cicero  :-)

    LG
    Nils

    Timm

    • Fördermitglied
    • Beiträge: 6.258
    Re: Artikel Content sortieren v2
    Antwort #26 am: 23. März 2018, 10:17:28
    Hast du beachtet, dass es in configure.php und htaccess unbedingt gleich sein muss? Nicht, dass du in der htaccess auf www weiterleitest und in der configure.php steht noch das ohne www.

    Da du www präferierst:

    in includes/configure.php das www mit in die Domain und in die zwei zeilen darunter so wie hier zu sehen
    Code: PHP  [Auswählen]
    // server
      defined('HTTP_SERVER') or define('HTTP_SERVER', 'https://www.der-materialspezialist.com'); // eg, http://localhost - should not be empty for productive servers
      defined('HTTPS_SERVER') or define('HTTPS_SERVER', 'https://www.der-materialspezialist.com.de'); // eg, https://localhost - should not be empty for productive servers

      // secure SSL
      defined('ENABLE_SSL') or define('ENABLE_SSL', true); // secure webserver for checkout procedure?
      defined('USE_SSL_PROXY') or define('USE_SSL_PROXY', false); // using SSL proxy?
     

    .htaccess
    Code: XML  [Auswählen]
    ##-- $Id: _.htaccess 10805 2017-06-17 13:18:59Z Tomcraft $

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

    ##-- Disable the server signature
    ServerSignature Off

    ##-- Turn off ETags in HTTP-header (use both directives)
    <IfModule mod_headers.c>
      Header unset ETag
      RequestHeader unset Proxy
    </IfModule>
    FileETag None

    ##-- When caching of gzipped JS and CSS files is used, enable this setting
    <IfModule mod_headers.c>
      Header set Vary Accept-Encoding
    </IfModule>

    ##-- when using Provider 1&1 set the following lines to activate PHP5
    #AddType x-mapp-php5 .php
    #AddHandler x-mapp-php5 .php

    # Disable directory browsing (disabled by default as this causes problems on some servers because they don't allow AllowOverride Directive for Options)
    #Options -Indexes

    ##-- Enable the compression for any type of content
    <IfModule mod_deflate.c>
     <FilesMatch "\\.(js|css|html|htm|php|xml|jpg|jpeg|png|gif|svg|woff)$">
       SetOutputFilter DEFLATE
     </FilesMatch>
    </IfModule>

    ##-- Customization of HTTP request and response headers
    <IfModule mod_headers.c>
     <FilesMatch "\\.(ico|jpe?g|png|gif|swf|flv|svg)$">
       Header set Cache-Control "max-age=2592000, public"
     </FilesMatch>
     <FilesMatch "\\.(css|woff)$">
       Header set Cache-Control "max-age=604800, public"
     </FilesMatch>
     <FilesMatch "\\.(js)$">
       Header set Cache-Control "max-age=604800, private"
     </FilesMatch>
     <FilesMatch "\\.(xml|txt)$">
       Header set Cache-Control "max-age=604800, public, must-revalidate"
     </FilesMatch>
     <FilesMatch "\\.(html|htm|php)$">
       Header set Cache-Control "max-age=1, private, must-revalidate"
     </FilesMatch>
    </IfModule>

    ##-- Generation of Expires and Cache-Control HTTP headers
    <IfModule mod_expires.c>
     ExpiresActive On
     ExpiresDefault "access plus 1 seconds"
     ExpiresByType image/gif "access plus 2592000 seconds"
     ExpiresByType image/jpg "access plus 2592000 seconds"
     ExpiresByType image/jpeg "access plus 2592000 seconds"
     ExpiresByType image/png "access plus 2592000 seconds"
     ExpiresByType image/svg+xml "access plus 2592000 seconds"
     ExpiresByType text/html "access plus 1 seconds"
     ExpiresByType text/css "access plus 604800 seconds"
     ExpiresByType text/javascript "access plus 604800 seconds"
     ExpiresByType application/x-javascript "access plus 604800 seconds"
     ExpiresByType application/javascript "access plus 604800 seconds"
     ExpiresByType text/x-component "access plus 604800 seconds"
     ExpiresByType application/font-woff "access plus 604800 seconds"
     ExpiresByType image/x-icon "access plus 604800 seconds"

     <IfModule mod_headers.c>
       Header append Cache-Control "public"
     </IfModule>
    </IfModule>

    ##-- Configure php_flags if necessary
    ##-- BEGIN - use IfModule clause if PHP runs in CGI mode, otherwise just uncomment the lines with php_flag...
    #<IfModule mod_php.c>

     ##-- Warn when arguments are passed by reference at function call time (from PHP5 allow_call_time_pass_reference is deprecated)
     #php_flag allow_call_time_pass_reference on

     ##-- Disable transparent sid support PHP-default is off (XTC Session only on first visit)
     #php_flag session.use_trans_sid off

     ##-- set suhosin flags because of errors with attributes (for webhosters with suhosin hardening patch enabled)
     #php_value suhosin.post.max_array_depth 0
     #php_value suhosin.post.max_array_index_length 0
     #php_value suhosin.post.max_vars 0
     #php_value suhosin.request.max_array_depth 0
     #php_value suhosin.request.max_array_index_length 0
     #php_value suhosin.request.max_vars 0

     ##-- set suhosin flags to have unencrypted session data, affecting "whos_online" & "shopping cart" (for webhosters with suhosin hardening patch enabled)patch enabled
     #php_value suhosin.session.encrypt Off
     #php_value suhosin.session.cryptkey ''

    ##-- END - use IfModule clause if PHP runs in CGI mode, otherwise just uncomment the lines with php_flag...
    #</IfModule>

    ##-- Redirect error pages to Sitemap
    ##-- set the correct Path to ErrorDocument
    ErrorDocument 400 /sitemap.html?error=400
    ErrorDocument 401 /sitemap.html?error=401
    ErrorDocument 402 /sitemap.html?error=402
    ErrorDocument 403 /sitemap.html?error=403
    ErrorDocument 404 /sitemap.html?error=404
    ErrorDocument 500 /sitemap.html?error=500

    ##-----------------------------------------
    ##- SEO Shopstat Modul (Hartmut Koenig)
    ##-----------------------------------------
    <IfModule mod_rewrite.c>
     ##-- Initialize and enable rewrite engine
     ##-- Documentation http://httpd.apache.org/docs/misc/rewriteguide.html
     RewriteEngine On

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

     ##-- disallow access to dotfiles (.htaccess, .svn, .git, etc.)
     #RedirectMatch 403 /\.
     
     ##-- Use canonical URLs
     ##-- Use SSL-Proxy
     ##-- HostEurope
     #RewriteCond %{HTTP:X-Forwarded-Server} !^ssl\.webpack\.de$ [NC]
     ##-- 1und1
     #RewriteCond %{HTTP:X-Forwarded-Server} !^ssl\.kundenserver\.de$ [NC]
     ##-- domainFACTORY
     #RewriteCond %{HTTP:X-Forwarded-Server} !^sslsites\.de$ [NC]
     ##-- All-Inkl
     #RewriteCond %{HTTP:X-Forwarded-Server} !^ssl-account\.com$ [NC]
     ##-- Strato
     #RewriteCond %{HTTP:X-Forwarded-Server} !^www\.ssl-id\.de$ [NC]
     
     ##-- redirect to http www-domain, when www is missing and no subdomain given and not using an ssl-proxy
     #RewriteCond %{HTTP_HOST} !^www\. [NC]
     #RewriteCond %{HTTP_HOST} !\.(.*)\. [NC]
     #RewriteCond %{HTTP_HOST} !^localhost [NC]
     #RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

     ##-- redirect to https www-domain, when www is missing and no subdomain given and not using an ssl-proxy
     RewriteCond %{HTTP_HOST} !^www\. [NC]
     RewriteCond %{HTTP_HOST} !\.(.*)\. [NC]
     RewriteCond %{HTTP_HOST} !^localhost [NC]
     RewriteRule ^ https://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
     RewriteCond %{SERVER_PORT} !^443$
     RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

     ##-- redirect to https non-www-domain, when no subdomain given and not using an ssl-proxy
     #RewriteCond %{SERVER_PORT} !^443$ [OR]
     #RewriteCond %{HTTP_HOST} ^www\. [NC]
     #RewriteCond %{HTTP_HOST} ^(?:www\.)?(.+)$ [NC]
     #RewriteRule ^ https://%1%{REQUEST_URI} [R=301,L]

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

     ##----------------------------------------------------------------------------------
     ##-- When working with SEO-Urls you can decide, whether to use a colon ":" or a dash "-" symbol
     ##-- (Windows Servers might have problems with colon as delimiter!)
     ##-- Change the delimiter symbol (SEO_SEPARATOR) also in file "/includes/extra/seo_url_mod/seo_url_shopstat.php"
     ##-- or create a new file "/includes/extra/configure/seo_separator.php"
     ##-- with the following content: <?php define('SEO_SEPARATOR','-'); ?>
      ##----------------------------------------------------------------------------------

      ##-- 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]
    </IfModule>

    Teste das mal so. Wenn es funktioniert, dann so lassen. Abhängig vom Hoster kann es aber auch sein, dass eine Zeile noch ausgetauscht werden muss. Das steht aber in Ronalds Beschreibung welche das wäre.

    Ganz wichtig: SSL erzwingen muss augeschalten sein beim Hoster!!! Das macht der Shop dann ganz allein durch die Änderungen. Würde nämlich tippen, dass das bei dir aktiviert ist, wenn der Shop auf https weiterleitet und du vorher aber noch nichts in der htaccess eingegeben hattest.

    Kann "SSL erzwingen" oder "Dauerhafte, für SEO geeignete 301-Weiterleitung von HTTP zu HTTPS" etc heißen. Da muss das Häkchen vor entfernt werden.

    Gruß Timm

    hpzeller

    • Experte
    • Beiträge: 4.129
    • Geschlecht:
    Re: Artikel Content sortieren v2
    Antwort #27 am: 23. März 2018, 10:28:08
    Hallo Timm,

    ich habe einige deiner Beiträge mit Tipps bezüglich der korrekten Konfiguration der .hataccess Datei im Webrootverzeichnis gelesen und dabei ist mir folgendes Aufgefallen, Du gibst immer wieder z.B. Tipps bezüglich der korrekten Konfiguration von mod_rewrite Direktiven mit dem Hinweis das diese Direktiven auch im Backend wichtig seien. Ich möchte dich deshalb darauf hinweisen das dem nicht so ist, denn in der 'admin/.hataccess' steht standardmässig folgendes drin

    Code: PHP  [Auswählen]
    <IfModule mod_rewrite.c>
      RewriteEngine off
    </IfModule>
     

    und dieser Code bewirkt das alle mod_rewrite Direktiven welche in der .hataccess Datei des Webrootverzeichnisses stehen im Ordner 'admin' unwirksam sind.

    Gruss
    Hanspeter

    Onlineshopper

    • Fördermitglied
    • Beiträge: 954
    • Geschlecht:
    Re: Artikel Content sortieren v2
    Antwort #28 am: 23. März 2018, 11:49:48
    Meine Güte das ist aber auch ne schwere Geburt.
    Ich habe das nun so eingestellt @Timm.

    Ich glaube, dass alles soweit funktioniert.
    Bis auf eines. Wenn ich nun auf der Startseite auf einen Slider klicke, dann öffnet der sich in einem neuen Fenster, was vorher nicht war.

    LG
    Nils

    Timm

    • Fördermitglied
    • Beiträge: 6.258
    Re: Artikel Content sortieren v2
    Antwort #29 am: 23. März 2018, 13:42:21
    @hpzeller
    Danke für den Hinweis. Das war mir so nicht bewusst. Heißt das im Umkehrschluss, dass die Problematik des nicht speichern könnens etc im Backend dann immer an der fälschlicherweise eingestellten Zwangsweiterleitung beim Hoster liegt?

    Bis auf diese Aussage waren meine Hinweise für eine korrekte SSL Einrichtung aber denke ich korrekt.

    @onlineshopper
    Die Weiterleitungen scheinen nun korrekt zu laufen.

    Mit dem Bannermanager kenn ich mich nicht aus, aber im Demoshop wird auch ein neues Fenster geöffnet und ist somit Standard, wenn man oben eine URL eingibt. Wird das bei dir über das html Feld weiter unten gelöst?

    Aber ich denke Hanspeter kann dir da sicherlich besser helfen.

    Gruß Timm
    Templateshop - Eine große Auswahl an neuen und modernen Templates für die modified eCommerce Shopsoftware
    3 Antworten
    3065 Aufrufe
    30. September 2011, 08:55:27 von mrwmandy
    1 Antworten
    2417 Aufrufe
    09. Juli 2010, 15:28:41 von Tomcraft
    1 Antworten
    1671 Aufrufe
    01. August 2017, 13:15:38 von web-looks
    5 Antworten
    2151 Aufrufe
    24. April 2017, 10:25:46 von Onlineshopper
               
    anything