rechtstexte für onlineshop
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: Suchmaschinenfreundliche URLs bekomme ich einfach nicht hin?

    sicalord

    • Schreiberling
    • Beiträge: 265
    Hallo Freunde,

    ich sitze schon seit gestern an der Einstellung der Suchmaschinenfreundliche URLs, ich habe kaum noch haare vor lauter zupfen.  :wallbash:  Ich bin bei 1 blu, habe schon htaccess geändert da der shop im Root installiert ist, habe schon diverses in htaccess geändert und spiele nur noch herum ohne zu wissen was ich machen soll?

    Freunde ich bin eher gut im gestalten, in Programmieren oder der gleichen bin ich ne Niete. ich poste mal meine ".htaccess" rein und würde mich freuen wenn ihr mir da bisschen weiter helfen würdet.

    Ein paar Eckdaten:
    shop ist oder müsste im root sein da ich keinen weiteren Ordner angelegt habe.

    Ich weiß jetzt nicht, habe da was mit apache2handle unter Server info gelesen bei einem anderen Kollegen hier im Forum, das Merkwürdige ist ich finde unter Server info keinen Apache2Handle?

    Ja mehr fällt mir momentan nicht ein, nochmals danke im voraus.

    Code: PHP  [Auswählen]
    # $Id: .htaccess,v 1.5 2005/05/19 17:09:19 Administrator Exp $
    #
    # If your shop runs in a subfolder, for example "www.domain.de/shop/"
    # you can use this .htaccess as a template.
    # Simply search and replace "/lustige-schilder.eu/" with the folder-name of your
    # custom installation-folder like "/shop/" or something.
    #
    # Attention: Leave the slashes "/" as is!
    #
    # This is used with Apache WebServers
    #
    # For this to work, you must include the parameter 'Options' to
    # the AllowOverride configuration
    #
    # Example:
    #RewriteEngine ON
    #<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$ /lustige-schilder.eu/shop_content.php?coID=8 [qsappend,L]

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

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

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

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

    ##-- Fehlerseiten auf die Sitemap lotsen
    ErrorDocument 400 /lustige-schilder.eu/sitemap.html?error=400
    ErrorDocument 401 /lustige-schilder.eu/sitemap.html?error=401
    ErrorDocument 402 /lustige-schilder.eu/sitemap.html?error=402
    ErrorDocument 403 /lustige-schilder.eu/sitemap.html?error=403
    ErrorDocument 404 /lustige-schilder.eu/sitemap.html?error=404
    ErrorDocument 500 /lustige-schilder.eu/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:/lustige-schilder.eu.%{HTTP_HOST}/lustige-schilder.eu/$1 [L,R=301]
    #
    ##-- EOF - Tomcraft - 2009-09-09 - Use canonical URLs


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

    Phantom

    • Fördermitglied
    • Beiträge: 429
    Suchmaschinenfreundliche URLs bekomme ich einfach nicht hin?
    Antwort #1 am: 05. August 2011, 10:23:15
    Wo kommt denn das "lustige-schilder.eu" in den rewrite Regeln her? Nimm mal die original ".htaccess" Datei aus einem aktuellen download.

    koshiro

    • Fördermitglied
    • Beiträge: 2.297
    Suchmaschinenfreundliche URLs bekomme ich einfach nicht hin?
    Antwort #2 am: 05. August 2011, 16:25:30
    Hallo Franky,
    an der htaccess brauchst Du doch erstmal gar nichts machen ausser Sie umbenennen von "_.htaccess" in ".htaccess", dann im Shop unter "Erweiterte Konfiguration" -> "Meta-Tags/Suchmaschinen" -> "Suchmaschinenfreundliche URLs benutzen?" auf "true" stellen und fertig.
    Und was natürlich wichtig ist, dass bei Deinem Hoster oder Server "mod_rewrite" aktiviert ist.
    Gruß
    Micha

    12 Antworten
    4757 Aufrufe
    31. Juli 2011, 10:46:17 von franky_n
    18 Antworten
    8569 Aufrufe
    08. April 2023, 22:48:03 von noRiddle (revilonetz)
    15 Antworten
    13751 Aufrufe
    11. September 2012, 12:05:07 von Guenter59