Seite 1 von 1

sef urls ohne https

Verfasst: 06.10.2010 09:13
von xxtita
hallo,

ich bin beim erzeugen von sef-urls für den produkt-katalog. dort funktioniert auch alles. allerdings möchte ich die sensitiven seiten - login, bezahlung, eigentlich alles was über ssl - https läuft vom umschreiben ausschließen. funktioniert leider so nicht, denn ich bekomme immer die fehlermeldung 500.

hier die .htaccess

#ErrorDocument 404 http://www.meinedomain.at/shop/index.php

# $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
#-- If you get an ERROR 403 on HostEurope-Webhostings
Options +FollowSymlinks

# http://httpd.apache.org/docs/misc/rewriteguide.html
RewriteEngine on
RewriteCond %{HTTPS} !=off



#-----------------------------------------
#- mit Unterverzeichnis
#-----------------------------------------
##-- Sitemap mit Sprache
RewriteRule ^/([a-z]{2})/sitemap(.*)\.html$ /shop/shop_content.php?coID=8&language=$1 [qsappend,L]
##-- Sitemap
RewriteRule ^sitemap(.*)\.html$ /shop/shop_content.php?coID=8 [qsappend,L]
#
###-- Kategorien mit Sprachen
RewriteCond %{REQUEST_URI} ^/shop/([a-z]{2})/(.*):::([_0-9]+):([_0-9]+)\.html$
RewriteRule ^([a-z]{2})/(.*):::([_0-9]+):([_0-9]+)\.html$ /shop/index.php?cPath=$3&page=$4&language=$1 [qsappend,L]
RewriteCond %{REQUEST_URI} ^/shop/([a-z]{2})/(.*):::([_0-9]+)\.html$
RewriteRule ^([a-z]{2})/(.*):::([_0-9]+)\.html$ /shop/index.php?cPath=$3&language=$1 [qsappend,L]
###-- Kategorien
RewriteCond %{REQUEST_URI} (.*):::([_0-9]+):([_0-9]+)\.html$
RewriteRule (.*):::([_0-9]+):([_0-9]+)\.html$ /shop/index.php?cPath=$2&page=$3 [qsappend,L]
RewriteCond %{REQUEST_URI} (.*):::([_0-9]+)\.html$
RewriteRule (.*):::([_0-9]+)\.html$ /shop/index.php?cPath=$2&code=%{REQUEST_URI} [qsappend,L]
#
###-- Produkte mit Sprachen
RewriteRule ^([a-z]{2})/(.*)::(.+)\.html$ /shop/product_info.php?products_id=$3&language=$1 [qsappend,L]
###-- Produkte
RewriteRule (.*)::(.+)\.html$ /shop/product_info.php?products_id=$2 [qsappend,L]
#
###-- Content mit Sprache
RewriteRule ^([a-z]{2})/(.*):_:([0-9]+)\.html$ /katalog/shop_content.php?coID=$3&language=$1 [qsappend,L]
###-- Content
RewriteRule (.*):_:([0-9]+)\.html$ /shop/shop_content.php?coID=$2 [qsappend,L]
#
###-- Manufacturers mit Sprachen
RewriteCond %{REQUEST_URI} ^/shop/([a-z]{2})/(.*):.:([_0-9]+):([_0-9]+)\.html$
RewriteRule ^([a-z]{2})/(.*):.:([_0-9]+):([_0-9]+)\.html$ /shop/index.php?manufacturers_id=$3&page=$4&language=$1 [qsappend,L]
RewriteCond %{REQUEST_URI} ^/shop/([a-z]{2})/(.*):.:([_0-9]+)\.html$
RewriteRule ^([a-z]{2})/(.*):.:([0-9]+)\.html$ /shop/index.php?manufacturers_id=$3&language=$1 [qsappend,L]
###-- Manufacturers
RewriteCond %{REQUEST_URI} (.*):.:([_0-9]+):([_0-9]+)\.html$
RewriteRule (.*):.:([_0-9]+):([_0-9]+)\.html$ /shop/index.php?manufacturers_id=$2&page=$3 [qsappend,L]
RewriteCond %{REQUEST_URI} (.*):.:([_0-9]+)\.html$
RewriteRule (.*):.:([0-9]+)\.html$ /shop/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

##-- Anfragen an altes Shop-Verzeichnis abfangen
#RewriteRule ^/shop/(.*)\.html$ http://www.meinedomain.at/$1.html [R=301,L]