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: Shop nicht erreichbar nach Umbenennung der _.htaccess

    ulli01

    • Frisch an Board
    • Beiträge: 95
    Shopversion 2.0.2.1

    Nachdem ich meinen Shop auf 2.0.2.1 erneuert habe und den Shop auf SEO- URLs mit dem integrierten shopstat  eingestellt habe musste ich die _.htaccess noch nach .htaccess umbenennen. Das habe ich gemacht, nun erhalte ich eine Fehlermeldung:

    Zitat
    Internal Server Error

    The server encountered an internal error due to .htaccess misconfiguration.
    Please check your .htaccess file within this or upper directories for syntax errors.

    Diese Anfrage konnte auf Grund eines .htaccess Konfigurationsfehlers nicht bearbeitet werden.
    Die Überprüfung auf Syntaxfehler in der .htaccess-Datei in diesem oder einem übergeordneten Ordner ist erforderlich.

    Deshalb hier auch gleich nochmal der Inhalt derselben:

    ##-- $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://www.%{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>

    Wie kann das sein? Falls jemand Hilfe anbieten kann wäre ich sehr dankbar. Desweiteren funktioniert die Cookie-Richtlinie logischerweise auch nicht damit.

    Gruß Ulli01

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

    Mantronix

    • Fördermitglied
    • Beiträge: 155
    Re: Shop nicht erreichbar nach Umbenennung der _.htaccess
    Antwort #1 am: 28. Januar 2017, 00:37:04
    Wenn ich deinen Code auswähle und dann im Editor einsetze, Habe ich am Anfang auf einmal ein ? stehen obwohl in deinem Code nichts zu sehen ist.
    Lösche doch mal die erste Zeile der .htaccess.

    LG

    web28

    • modified Team
    • Beiträge: 9.404
    Re: Shop nicht erreichbar nach Umbenennung der _.htaccess
    Antwort #2 am: 28. Januar 2017, 11:46:32
    Versuche es mit der Original htaccess aus dem Downloadpaket.

    Gruss Web28

    ulli01

    • Frisch an Board
    • Beiträge: 95
    Re: Shop nicht erreichbar nach Umbenennung der _.htaccess
    Antwort #3 am: 12. Februar 2017, 17:05:10
    Habe ich gemacht, selbes Ergebnis, an was kann es noch liegen?

    Mantronix

    • Fördermitglied
    • Beiträge: 155
    Re: Shop nicht erreichbar nach Umbenennung der _.htaccess
    Antwort #4 am: 12. Februar 2017, 17:17:04
    Bei welchem Hoster bist du denn?
    bplaced?

    LG

    ulli01

    • Frisch an Board
    • Beiträge: 95
    Re: Shop nicht erreichbar nach Umbenennung der _.htaccess
    Antwort #5 am: 13. Februar 2017, 11:24:54
    Ja ich bin bei square7.ch und habe dort bezahlten Webspace. Meine Uraltshops (auch modified) liegen dort auch, da funktioniert es einwandfrei.

    GRuß Ulli01

    Mantronix

    • Fördermitglied
    • Beiträge: 155
    Re: Shop nicht erreichbar nach Umbenennung der _.htaccess
    Antwort #6 am: 13. Februar 2017, 11:44:09
    Hast du dann mal die htaccess mit den uraltschops verglichen?
    Shop im Unterverzeichnis?
    Subdomain?
    Link?

    LG

    ulli01

    • Frisch an Board
    • Beiträge: 95
    Re: Shop nicht erreichbar nach Umbenennung der _.htaccess
    Antwort #7 am: 13. Februar 2017, 12:00:24
    Die .htaccess bei den hänge ich mal dran. Der Shop liegt in einem Unterverzeichnis "www.meineDomain/shop" wird aber zum Zeitpunkt der Scharfschaltung direkt per DNS auf das Verzeichnis gelenkt, habe ich mit den anderen auch gemacht und funktioniert einwandfrei.

    alte .htaccess im Unterverzeichnis /bikershop01/:

    # $Id: .htaccess,v 1.5 2005/05/19 17:09:19 Administrator Exp $
    #
    # This is used with Apache WebServers
    #
    # For this to work, you must include the parameter 'Options' to
    # the AllowOverride configuration
    #
    # Example:
    #
    #<Directory "/opt/lampp/httpd/htdocs">
    #   AllowOverride Options
    #</Directory>
    #
    # 'All' with also work. (This configuration is in the
    # apache/conf/httpd.conf file)
    # The following makes adjustments to the SSL protocol for Internet
    # Explorer browsers
    <IfModule mod_setenvif.c>
      <IfDefine SSL>
        SetEnvIf User-Agent ".*MSIE.*" \
                 nokeepalive ssl-unclean-shutdown \
                 downgrade-1.0 force-response-1.0
      </IfDefine>
    </IfModule>

    # Fix certain PHP values
    # (commented out by default to prevent errors occuring on certain
    # servers)
    #<IfModule mod_php4.c>
    #  php_value session.use_trans_sid 0
    #  php_value register_globals 1
    #</IfModule>

    #-- Call time pass reference error ?!
    #php_flag  allow_call_time_pass_reference On

    #-----------------------------------------
    #- SEO Hartmut König
    #-----------------------------------------
    #-- ! Comment this line, if you get an ERROR 500 !
    #Options +FollowSymlinks

    # http://httpd.apache.org/docs/misc/rewriteguide.html
    RewriteEngine on

    RewriteCond %{HTTP_HOST} ^kolbenfresser24\.de$
    RewriteRule ^(.*)$ http://www.kolbenfresser24.de/$1 [R=permanent,L]

    #-- Spam Refferer
    RewriteCond %{HTTP_REFERER} ^http://.*7makemoneyonline\.com/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http://.*buttons-for-website\.com/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http://.*buttons-for-your-website\.com/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http://.*best-seo-offer\.com/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http://.*success-seo\.com/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http://.*1-99seo\.com/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http://.*sumaja\.de/ [NC]
    RewriteCond %{HTTP_REFERER} ^http://.*burger-imperia\.com/ [NC]
    RewriteCond %{HTTP_REFERER} ^http://.*hvipmanager\.in/ [NC]
    RewriteCond %{HTTP_REFERER} ^http://.*1-free-share-buttons\.com/ [NC]
    RewriteCond %{HTTP_REFERER} ^http://.*healbio\.ru/ [NC]
    RewriteCond %{HTTP_REFERER} ^http://.*na-telefon\.biz/ [NC]
    RewriteCond %{HTTP_REFERER} ^http://.*perm-afora\.ru/ [NC]
    RewriteCond %{HTTP_REFERER} ^http://.*pornogig\.com/ [NC]
    RewriteCond %{HTTP_REFERER} ^http://.*mosrif\.ru/ [NC]
    RewriteRule ^(.*)$ – [F,L]

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

    ##-- Kategorien
    RewriteCond %{REQUEST_URI} (.*):::([_0-9]+):([_0-9]+)\.html$
    RewriteRule (.*):::([_0-9]+):([_0-9]+)\.html$ /index.php?cPath=$2&page=$3 [qsappend,L]
    RewriteCond %{REQUEST_URI} (.*):::([_0-9]+)\.html$
    RewriteRule (.*):::([_0-9]+)\.html$ /index.php?cPath=$2 [qsappend,L]

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

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

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

    ##-- Fehlerseiten auf die Sitemap lotsen
    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    

    #php_value session.use_trans_sid off
    #php_flag session.use_trans_sid off

    #Options +FollowSymLinks

    RewriteEngine On

    RewriteBase /bikershop01/
    #RewriteCond %{REQUEST_URI} (.*)\.php(.*)? [NC,OR]
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^(.*)$ - [QSA,L]
    RewriteRule ^(admin|cache|callback|download|export|images|import|inc|includes|lang|media|pub|templates|templates_c)\/ - [L]
    RewriteRule (language\/)(.*\/)?(.*)?\.html?$ index.php/$2$3$4 [QSA,L]
    RewriteRule ^([a-z]{2})(\/)?$ index.php/language/$1$2 [QSA,L]
    RewriteRule (.*)?((\/)?p[0-9]{1,}_.*)\.html(.*)?$ product_info.php/info/$1$2.html$3 [QSA,L]
    RewriteRule (.*\/)?content\/(.*)\.html$ shop_content.php/$1$2 [QSA,L]
    RewriteRule (.*\/)?tags\/(.*)(-(page)-(.*))?\.html$ tagclouds.php/tags/$2/$4/$5 [QSA,L]
    RewriteRule (.*)-(page)-(.*)\.html(.*)?$ index.php/$1/$2/$3$4 [QSA,L]
    RewriteRule (.*)\.html(.*)?$ index.php/$1$2 [QSA,L]

    #RewriteCond %{REQUEST_FILENAME} !-f
    #RewriteCond %{REQUEST_FILENAME} !-d
    #RewriteCond %{REQUEST_FILENAME} !-l
    #RewriteRule .* http://{HTTP_HOST}/ [R=301,L]

    Ich habe noch nicht probiert ob die in dem neuen Shop funktioniert.

    Gruß Ulli

    Tomcraft

    • modified Team
    • Gravatar
    • Beiträge: 46.369
    • Geschlecht:
    Re: Shop nicht erreichbar nach Umbenennung der _.htaccess
    Antwort #8 am: 13. Februar 2017, 12:40:30
    Wenn der Shop in einem Unterverzeichnis liegt, dann ist dieser Teil der ".htaccess" zu beachten:

    Code: PHP  [Auswählen]
    [...]
      ##-- EXAMPLE: If your shop is located at "http://www.yourdomain.com/shop",
     ##-- set the following line like e.g.: RewriteBase /shop/
     RewriteBase /
    [...]

    Grüße

    Torsten

    ulli01

    • Frisch an Board
    • Beiträge: 95
    Re: Shop nicht erreichbar nach Umbenennung der _.htaccess
    Antwort #9 am: 13. Februar 2017, 13:30:27
    Ich bin doch so ein Depp, vielen Dank, das war es.

    Ulli01
    Shop Hosting
    16 Antworten
    10046 Aufrufe
    19. März 2017, 13:59:57 von awids
    2 Antworten
    3008 Aufrufe
    01. Januar 2016, 20:49:42 von olivius
    22 Antworten
    8545 Aufrufe
    17. Mai 2016, 13:16:23 von Bonsai
    22 Antworten
    5329 Aufrufe
    14. Oktober 2017, 16:58:57 von Fralle