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: Https geht nicht bei Neuinstallation 2.0.4.2 mit neuer Datenbank

    Mugs & Cups -Mehr als Tee

    • Neu im Forum
    • Beiträge: 23
    • Geschlecht:
    Guten Abend Freunde,

    Ich wollte am Wochenende unseren alten Shop mal komplett neu aufsetzen mit der Shopversion 2.0.4.2. Ich versuche hier schon den ganzen Tag den Shop zum Laufen zu bringen aber negativ.

    Zum Problem: Der Alte Shop war ein Modified Shop 1.06 und lief reibungslos bei Goneo mit einem RapidSSL Zertifikat.

    Ich habe die Alte Shopversion gesichert und vom Server komplett gelöscht, auch eine neue Datenbank wurde angelegt. Der neue Shop läuft reibungslos über http:// jedoch kommt über https:// folgendes:

    Code: XML  [Auswählen]
    assign('language', $_SESSION['language']); $smarty->caching = 0; if (!defined('RM')) $smarty->load_filter('output', 'note'); $smarty->display(CURRENT_TEMPLATE.'/index.html'); include ('includes/application_bottom.php'); ?>

    Ich habe alles nach Anleitung umgesetzt aber leider gehts nicht. Ich habe mal die .htaccess umleitung und die Änderungen in der config.php rückgängig gemacht, damit Ihr mal zwischen http und https switchen könnt. Die besagte Webseite ist www.mugs-n-cups.de

    Ich finde einfach nicht heraus womit das zutun haben könnte... Die PHP Version auf dem Server ist die 7.1

    Ich danke euch schon vielmals für eure Hilfe =)

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

    hpzeller

    • Experte
    • Beiträge: 4.129
    • Geschlecht:
    Also wenn der neu Shop auf dem gleichen Webspace, mit gleicher Domain und dem gleichen SSL-Zertifikat unter https nicht mehr funktioniert und das tut er so wie ich gesehen habe tatsächlich nicht (der PHP Code wird nicht geparst sonder wie HTML Code einfach an den Browser gesendet), dann vermute ich, dass in der Datei .htaccess des neuen Shops etwas fehlt was in der .htaccess des alten Shops drin stand.

    Ein Tipp, deaktiviere die Datei .htaccess in dem du ihr einen Unterstrich voran stellst, also so _.htaccess dann erstelle eine Datei mit Namen phpinfo.php und füge in ihr folgenden Inhalt ein.

    Code: PHP  [Auswählen]
    <?php

    // Zeigt alle Informationen (Standardwert ist INFO_ALL)
    phpinfo();
     

    Danach legst du sie ins Webrootverzeichnis.

    Dann rufe mit dem Browser deinen Shop so -> https://www.mugs-n-cups.de/phpinfo.php auf.

    Gruss
    Hanspeter

    Mugs & Cups -Mehr als Tee

    • Neu im Forum
    • Beiträge: 23
    • Geschlecht:
    Hallo Hanspeter,

    vielen Dank für deine Antwort, ich habe das so gemacht wie du es geschrieben hast, wenn ich jetzt die phpinfo.php mit https aufrufe, kommt eine weisse Seite, unter http geht die phpinfo.php

    warum wird die php nicht unter https geparst?

    Gruß
    Nima

    hpzeller

    • Experte
    • Beiträge: 4.129
    • Geschlecht:
    Hallo Nima,

    das kann ich dir nicht sagen warum php unter https nicht geparst wird. Poste doch bitte hier mal den Inhalt der .htaccess deines alten Shops (der ja unter exakt gleicher Domain mit https funktionierte) und die .htaccess des neuen Shops.

    Gruss
    Hanspeter

    Mugs & Cups -Mehr als Tee

    • Neu im Forum
    • Beiträge: 23
    • Geschlecht:
    Genau, der alte Shop lief reibungslos unter https.

    .htaccess des alten Shops:

    Code: XML  [Auswählen]

    ##-- $Id: .htaccess 3209 2012-07-12 11:51:11Z gtb-modified $

        <IfModule mod_php.c>
                php_value suhosin.session.encrypt Off
                php_value suhosin.session.cryptkey ''
        </IfModule>

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

    <IfModule mod_deflate.c>
     
    # Force deflate for mangled headers developer.yahoo.com/blogs/ydn/posts/2010/12/pushing-beyond-gzipping/
    <IfModule mod_setenvif.c>
     <IfModule mod_headers.c>
       SetEnvIfNoCase ^(Accept-EncodXng|X-cept-Encoding|X{15}|~{15}|-{15})$ ^((gzip|deflate)s*,?s*)+|[X~-]{4,13}$ HAVE_Accept-Encoding
       RequestHeader append Accept-Encoding "gzip,deflate" env=HAVE_Accept-Encoding
     </IfModule>
    </IfModule>
     
    # HTML, TXT, CSS, JavaScript, JSON, XML, HTC:
    <IfModule filter_module>
     FilterDeclare   COMPRESS
     FilterProvider  COMPRESS  DEFLATE resp=Content-Type $text/html
     FilterProvider  COMPRESS  DEFLATE resp=Content-Type $text/css
     FilterProvider  COMPRESS  DEFLATE resp=Content-Type $text/plain
     FilterProvider  COMPRESS  DEFLATE resp=Content-Type $text/xml
     FilterProvider  COMPRESS  DEFLATE resp=Content-Type $text/x-component
     FilterProvider  COMPRESS  DEFLATE resp=Content-Type $application/javascript
     FilterProvider  COMPRESS  DEFLATE resp=Content-Type $application/json
     FilterProvider  COMPRESS  DEFLATE resp=Content-Type $application/xml
     FilterProvider  COMPRESS  DEFLATE resp=Content-Type $application/xhtml+xml
     FilterProvider  COMPRESS  DEFLATE resp=Content-Type $application/rss+xml
     FilterProvider  COMPRESS  DEFLATE resp=Content-Type $application/atom+xml
     FilterProvider  COMPRESS  DEFLATE resp=Content-Type $application/vnd.ms-fontobject
     FilterProvider  COMPRESS  DEFLATE resp=Content-Type $image/svg+xml
     FilterProvider  COMPRESS  DEFLATE resp=Content-Type $application/x-font-ttf
     FilterProvider  COMPRESS  DEFLATE resp=Content-Type $font/opentype
     FilterChain     COMPRESS
     FilterProtocol  COMPRESS  DEFLATE change=yes;byteranges=no
    </IfModule>
     
    <IfModule !mod_filter.c>
      # Legacy versions of Apache
      AddOutputFilterByType DEFLATE text/html text/plain text/css application/json
      AddOutputFilterByType DEFLATE application/javascript
      AddOutputFilterByType DEFLATE text/xml application/xml text/x-component
      AddOutputFilterByType DEFLATE application/xhtml+xml application/rss+xml application/atom+xml
      AddOutputFilterByType DEFLATE image/svg+xml application/vnd.ms-fontobject application/x-font-ttf font/opentype
    </IfModule>
    </IfModule>

    ##-- Customization of HTTP request and response headers
    <IfModule mod_headers.c>
      <FilesMatch "\\.(ico|jpe?g|png|gif|swf|flv)$">
        Header set Cache-Control "max-age=2592000, public"
      </FilesMatch>
      <FilesMatch "\\.(css)$">
        Header set Cache-Control "max-age=604800, public"
      </FilesMatch>
      <FilesMatch "\\.(js)$">
        Header set Cache-Control "max-age=31556926, private"
      </FilesMatch>
      <FilesMatch "\\.(xml|txt)$">
        Header set Cache-Control "max-age=216000, 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 minutes"
          ExpiresByType text/html "access plus 1 minutes"
          ExpiresByType text/css "access plus 604800 seconds"
          ExpiresByType text/javascript "access plus 1 years"
          ExpiresByType text/plain "access plus 604800 seconds"
          ExpiresByType application/javascript "access plus 1 years"
          ExpiresByType application/x-javascript "access plus 1 years"
          ExpiresByType application/x-shockwave-flash "access plus 1 years"
          ExpiresByType image/gif "access plus 604800 seconds"
          ExpiresByType image/jpeg "access plus 604800 seconds"
          ExpiresByType image/jpg "access plus 604800 seconds"
          ExpiresByType image/png "access plus 604800 seconds"
          ExpiresByType image/x-icon "access plus 1 years"
              ExpiresByType image/icon "access plus 1 years"
          ExpiresByType image/ico "access plus 604800 seconds"
          ExpiresByType application/xhtml+xml "access plus 600 seconds"
         
    </IfModule>

    <IfModule mod_mime.c>
        AddType image/ico .ico
    </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
     
     ##-- 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 %{HTTPS} off
     RewriteCond %{SERVER_PORT} !^443$
     RewriteCond %{HTTP:X-Forwarded-Proto} !https
     RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

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

     ##-- Use canonical URLs
     ##-- redirect to www-domain, when www is missing and no subdomain given and not using an 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]

     #RewriteCond %{HTTP_HOST}                 !^www\.(.*) [NC]
     #RewriteCond %{HTTP_HOST}                 !^(.*)\.(.*)\.(.*) [NC]
     #RewriteCond %{HTTP_HOST}                 !^localhost(.*)$ [NC]
     #RewriteRule ^(.*)                        http://www.%{HTTP_HOST}/$1 [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 (:::)
     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>

    # Bot semalt.com blocken
    RewriteEngine on
    RewriteCond %{HTTP_REFERER} semalt.com [NC]
    RewriteRule .* - [F]

    # Bot make-money-online blocken
    RewriteEngine on
    RewriteCond %{HTTP_REFERER} make-money-online.7makemoneyonline.com [NC]
    RewriteCond %{HTTP_REFERER} 7makemoneyonline.com [NC]
    RewriteRule .* - [F]

    # Bot buttons-for-website.com blocken
    RewriteEngine on
    RewriteCond %{HTTP_REFERER} buttons-for-website.com [NC]
    RewriteRule .* - [F]

    # Bot ilovevitaly.com blocken
    RewriteEngine on
    RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?.*(-|.)ilovevitaly(-|.).*$ [NC]
    RewriteRule .* - [F]

    order allow,deny
    deny from  188.138.89.58
    deny from  198.23.177.93
    deny from 192.241.163.230
    deny from 185.38.47.93
    deny from 194.187.168.27
    deny from .ilovevitaly.com
    allow from all

     

    .htaccess des neue Shops

    Code: XML  [Auswählen]
    ##-- $Id: _.htaccess 10934 2017-08-31 12:11:28Z 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

    ##-- Add Mime Types
    <IfModule mod_mime.c>
     AddType application/font-woff2 .woff2
    </IfModule>

    # 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|woff2|ttf|otf|eot)$">
       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|woff2|ttf|otf|eot)$">
       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 font/truetype "access plus 604800 seconds"
     ExpiresByType font/opentype "access plus 604800 seconds"
     ExpiresByType application/x-font-ttf "access plus 604800 seconds"
     ExpiresByType application/x-font-woff "access plus 604800 seconds"
     ExpiresByType application/font-woff "access plus 604800 seconds"
     ExpiresByType application/vnd.ms-fontobject "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>

    Vielen Dank

    Gruß Nima

    hpzeller

    • Experte
    • Beiträge: 4.129
    • Geschlecht:
    Füge in deine .htaccess des neuen Shops am Anfang mal folgenden Code ein.

    Code: PHP  [Auswählen]
        <IfModule mod_php.c>
                php_value suhosin.session.encrypt Off
                php_value suhosin.session.cryptkey ''
      </IfModule>
     

    Wenn das nicht hilft, kannst du auch mal testweise den kompletten Inhalt der alten .htaccess in die neue einsetzen.

    Gruss
    Hanspeter

    Mugs & Cups -Mehr als Tee

    • Neu im Forum
    • Beiträge: 23
    • Geschlecht:
    Habe beide deiner Vorschläge umgesetzt, leider geht auch das nicht  :’-(

    Hast du vielleicht noch eine Idee was man machen könnte?

    Wenn es was hilft, ich habe zugriff auf die php.ini

    Gruß Nima

    Mugs & Cups -Mehr als Tee

    • Neu im Forum
    • Beiträge: 23
    • Geschlecht:
    Hi Hanspeter, vielen Dank für deine Hilfe,

    ich habs gelöst...

    Ich habe in die .htaccess folgendes hinzugefügt:

    Code: XML  [Auswählen]
    <FilesMatch \.php$>
      SetHandler application/x-httpd-php
      </FilesMatch>

    Jetzt geht es

    Hoffe das hilft anderen mit derartigem Problem

    Gruß Nima
    10 Antworten
    3657 Aufrufe
    04. November 2016, 20:06:51 von dmun
    3 Antworten
    1176 Aufrufe
    22. Februar 2021, 21:28:32 von beeb
    5 Antworten
    3250 Aufrufe
    07. Oktober 2023, 12:07:29 von snocer