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 in einem Unterverzeichnis - wie .htaccess ändern?

    vinc

    • Neu im Forum
    • Beiträge: 47
    Hallo,

    habe meinen shop in einem Unterverzeichnis. Was muss ich denn an der .htaccess ändern?
    Und wo ist die eigentlich hin, ich finden sie mit meinem ftp-Prog nicht?

    gruß vinc



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

    Anonym

    • Gast
    Shop in einem Unterverzeichnis - wie .htaccess ändern?
    Antwort #1 am: 18. Januar 2009, 22:06:09
    Das ist die htaccess aus dem Demoshop. Hier sieht Du überall wo einen .php Endung auftaucht, das dort Unterordner wie /test/xtcommerce_updated/ davor geschrieben worden sind. Das Gleiche muss Du bei Deiner auch machen.

    Liegt der Shop als Bsp. deinedomain.de/shop/ musst Du /shop/ vor die .php Endungen schreiben und nicht vergessen das _ vor dem Punkt des Names der Datei _.htaccess zu löschen. Die Datei liegt im Hauptverzeichnis des Shops.

    Code: PHP  [Auswählen]

    # $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 "/usr/local/apache/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

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

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

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

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

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

    ##-- Fehlerseiten auf die Sitemap lotsen
    ErrorDocument 400 /test/xtcommerce_updated/sitemap.html?error=400
    ErrorDocument 401 /test/xtcommerce_updated/sitemap.html?error=401
    ErrorDocument 402 /test/xtcommerce_updated/sitemap.html?error=402
    ErrorDocument 403 /test/xtcommerce_updated/sitemap.html?error=403
    ErrorDocument 404 /xtcommerce_updated/sitemap.html?error=404
    ErrorDocument 500 /test/xtcommerce_updated/sitemap.html?error=500
     

    vinc

    • Neu im Forum
    • Beiträge: 47
    Shop in einem Unterverzeichnis - wie .htaccess ändern?
    Antwort #2 am: 21. Januar 2009, 21:32:11
    danke für die umfangreiche Antwort
    werde mich dran machen und tüfteln...

    vinc

    vinc

    • Neu im Forum
    • Beiträge: 47
    Shop in einem Unterverzeichnis - wie .htaccess ändern?
    Antwort #3 am: 22. Januar 2009, 12:40:26
    hallo,

    kann die datei per ftp nicht finden...

    vinc

    Tomcraft

    • modified Team
    • Gravatar
    • Beiträge: 46.369
    • Geschlecht:
    Shop in einem Unterverzeichnis - wie .htaccess ändern?
    Antwort #4 am: 22. Januar 2009, 12:53:34
    Lass dir mal versteckte Dateien anzeigen. =)

    Anonym

    • Gast
    Shop in einem Unterverzeichnis - wie .htaccess ändern?
    Antwort #5 am: 22. Januar 2009, 16:06:15
    Siehe Bild

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

    ricoti

    • Neu im Forum
    • Beiträge: 18
    Shop in einem Unterverzeichnis - wie .htaccess ändern?
    Antwort #6 am: 02. April 2009, 21:27:13
    muss man diese _.htaccess datei unbedingt ändern ?
    Meine Shop liegt auch in einem unterverzeichnis und habe auch bis jetzt nichts geändert im htaccess. Der shop funktioniert aber auch so . Oder Sollte etwas anders laufen?
    Bitte um Antwort
    Enrico

    tom.f

    • Schreiberling
    • Beiträge: 302
    Shop in einem Unterverzeichnis - wie .htaccess ändern?
    Antwort #7 am: 02. April 2009, 21:31:48
    _.htaccess bleibt unberücksichtigt.
    .htaccess wird berücksichtigt.
    Erforderlich für mod_rewrite.

    ricoti

    • Neu im Forum
    • Beiträge: 18
    Shop in einem Unterverzeichnis - wie .htaccess ändern?
    Antwort #8 am: 30. April 2009, 16:56:20
    hallo,
    ich habe mein shop in einen unterverzeichnis, aber mein domain wird direkt auf diese unterverzeichnis weitergeleitet, beim aufruf sehe ich also keine unterverzeichnis.
    mod_rewrite ist aktiv glaube ich:
    (Loaded Modules
    core prefork http_core mod_so mod_access mod_actions mod_alias mod_auth mod_auth_dbm mod_autoindex mod_cgi mod_dir mod_env mod_expires mod_include mod_log_config mod_mime mod_negotiation mod_setenvif mod_ssl mod_suexec mod_userdir mod_php5 mod_rewrite mod_logio mod_bw mod_status mod_unique_id mod_security2 )

    meine .htacces sich so aus:

    Code: PHP  [Auswählen]
    # $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 "/srv/www/htdocs/web139/html/">
    #   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

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

    meine config.php einstellungen :

    Define the webserver and path parameters
    // * DIR_FS_* = Filesystem directories (local/physical)
    // * DIR_WS_* = Webserver directories (virtual/URL)
      define('HTTP_SERVER', 'http://shop1.eroticbox24h.de'); // eg, http://localhost - should not be empty for productive servers
      define('HTTPS_SERVER', 'https://shop1.eroticbox24h.de'); // eg, https://localhost - should not be empty for productive servers
      define('ENABLE_SSL', false); // secure webserver for checkout procedure?
      define('DIR_WS_CATALOG', '/'); // absolute path required
      define('DIR_FS_DOCUMENT_ROOT', '/srv/www/htdocs/web139/html/shop1/');
      define('DIR_FS_CATALOG', '/srv/www/htdocs/web139/html/shop1/');
      define('DIR_WS_IMAGES', 'images/');
      define('DIR_WS_ORIGINAL_IMAGES', DIR_WS_IMAGES
    etc.

    kann mir jemand sagen warum Fehlercode 403 kommt ?

    gruß
    Enrico

    Anonym

    • Gast
    Shop in einem Unterverzeichnis - wie .htaccess ändern?
    Antwort #9 am: 30. April 2009, 23:03:08
    Enrico versuchs mal damit

    Code: PHP  [Auswählen]
    #Options +FollowSymlinks
    ändern in

    Code: PHP  [Auswählen]
    Options +FollowSymlinks