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: SEO-Links (.htaccess, Port 8080)

    neocreo

    • Neu im Forum
    • Beiträge: 10
    SEO-Links (.htaccess, Port 8080)
    am: 24. Oktober 2010, 08:21:10
    Hallo zusammen,

    dies ist mein erster Beitrag hier. Ich teste gerade modified eCommerce Shopsoftware lokal auf meinem Rechner an Port 8080. Der Shop läuft in einer Subdomain, also http://shop.localhost:8080

    Mit aktivierter SEO-Option werden die Links offensichtlich korrekt gebaut, z.B.
    http://shop.localhost:8080/Liefer-und-Versandkosten:_:1.html

    Ich bekommme allerdings den hier bekannten Fehler:
    "Forbidden
    You don't have permission to access /Liefer-und-Versandkosten:_:1.html on this server."

    Die .htaccess habe ich nicht verändert.
    Kann es daran liegen, dass ich auf Port 8080 arbeiten möchte? Müsste ich da etwas an der .htaccess abändern?

    Weitere Infos:
    Datenbank:    MySQL 5.1.49-community
    HTTP Server:    Apache/2.2.16 (Win32)
    PHP Version:    5.2.14 (Zend: 2.2.0)

    So sieht mein VirtualHost aus:

    Code: XML  [Auswählen]
    <virtualHost *:8080>
            ServerName shop.localhost
            ServerAlias w w w .shop.localhost
            DocumentRoot "E:/projects/www/shop/public_html"
            <directory "E:/projects/www/shop/public_html">
                    Options All
                    AllowOverride All
                    Order allow,deny
                    Allow from all
            </directory>
    </virtualHost>
     


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

    neocreo

    • Neu im Forum
    • Beiträge: 10
    SEO-Links (.htaccess, Port 8080)
    Antwort #1 am: 24. Oktober 2010, 08:26:30
    Ich habe mir überlegt, dass es vielleicht doch gut wäre, trotzdem die .htaccess zu posten.
    :)
    Hier ist sie:
    # $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>

    #-- set expire header for image, pdf, js and css files for 30 days
    #<FilesMatch "\.(ico|pdf|jpg|jpeg|png|gif|js|css)$">
    #  Header set Cache-Control "max-age=2592000, public"
    #</FilesMatch>

    #-- Turn off ETags in HTTP-header
    #FileETag None

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

    #-- XTC Session only on first visit
    #php_flag session.use_trans_sid 0

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

    ##-- BOF - Tomcraft - 2009-09-09 - Use canonical URLs
    # (don't use if your shop runs on a subdomain!)
    #
    #RewriteCond %{HTTP_HOST} !^www\. [NC]
    #RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [L,R=301]
    #
    ##-- EOF - Tomcraft - 2009-09-09 - Use canonical URLs

    neocreo

    • Neu im Forum
    • Beiträge: 10
    SEO-Links (.htaccess, Port 8080)
    Antwort #2 am: 24. Oktober 2010, 08:31:44
    Achso... das Folgende ist sicher auch noch wichtig.

    Auf diese Weise funktioniert es:
    http://shop.localhost:8080/index.php/Unsere-AGB:_:3.html

    Tomcraft

    • modified Team
    • Gravatar
    • Beiträge: 46.369
    • Geschlecht:
    SEO-Links (.htaccess, Port 8080)
    Antwort #3 am: 24. Oktober 2010, 16:18:57
    Hallo NeoCreo,

    das Problem liegt bei den Doppelpunkten in der URL, schau mal hier: MODUL: ShopStat URLs für XAMPP

    Alternativ kannst du gleich das fertige Paket "Download modified eCommerce Shopsoftware 1.05 “Portable” inklusive XAMPP (nur für Windows 32-bit)" benutzen.

    Grüße

    Torsten

    neocreo

    • Neu im Forum
    • Beiträge: 10
    SEO-Links (.htaccess, Port 8080)
    Antwort #4 am: 25. Oktober 2010, 00:39:48
    Hallo Torsten,

    super! Daran hat es gelegen. Vielen Dank! :-)

    Grüße
    Julien