Quantcast
Channel: Neueste Diskussionen - Shopware Community Forum
Viewing all articles
Browse latest Browse all 14594

www. und http auf https umleiten

$
0
0
Hallo liebe Community,

ich schlage mich nun seit zwei Tagen mit einem Problem rum, welches ich trotz Anleitungen im Netz und auch Vorschlägen aus dem Forum nicht lösen kann.

Folgendes Problem / Situation:
Mein Shop ist SSL verschlüsselt, dies gilt jedoch nur für die Hauptdomain https://domain.de. Sobald man http://www.domain.de, http://www.domain.de oder https://www.domain.de eingibt, erhält man den Fehler das die Webseite nicht sicher ist.

Mein Ziel ist es, sämtliche Anfragen auf https://domain.de umzuleiten. Die Htaccess habe ich bereits mehrfach ohne Erfolg angepasst. Meistens erhalte ich den Fehler: Zu viele Weiterleitungen.

Ich habe die Konfig nun erstmal zurückgesetzt und hoffe, mir kann jemand bei diesem Thema helfen.

Ich habe die Anleitung aus der Wiki versucht: http://wiki.shopware.com/Umleitung-alle ... _1863.html
    Webhosting bei All-Inkl (falls das relevant ist) SSL by RapidSSL (KEIN Wildcard)
<IfModule mod_rewrite.c>
RewriteEngine on

#RewriteBase /shopware/

# Https config for the backend
#RewriteCond %{HTTPS} !=on
#RewriteRule backend/(.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

RewriteRule shopware.dll shopware.php
RewriteRule files/documents/.* engine [NC,L]
RewriteRule backend/media/(.*) media/$1 [NC,L]

RewriteCond %{REQUEST_URI} !(\/(engine|files|templates)\/)
RewriteCond %{REQUEST_URI} !(\/media\/(archive|banner|image|music|pdf|unknown|video)\/)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ shopware.php [PT,L,QSA]

# Fix missing authorization-header on fast_cgi installations
</IfModule>

<IfModule mod_alias.c>
# Block access to VCS directories
RedirectMatch 404 /\\.(svn|git|hg|bzr|cvs)(/|$)
</IfModule>

# Staging environment
#SetEnvIf Host "staging.test.shopware.in" SHOPWARE_ENV=staging

# Development environment
#SetEnvIf Host "dev.shopware.in" SHOPWARE_ENV=dev
#SetEnv SHOPWARE_ENV dev

DirectoryIndex index.html
DirectoryIndex index.php
DirectoryIndex shopware.php

# Disables download of configuration
<Files ~ "\.(tpl|yml|ini)$">
# Deny all requests from Apache 2.4+.
<IfModule mod_authz_core.c>
Require all denied
</IfModule>

# Deny all requests from Apache 2.0-2.2.
<IfModule !mod_authz_core.c>
Deny from all
</IfModule>
</Files>

# Enable gzip compression
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/xml text/plain text/css text/javascript application/json application/x-font-woff application/font-woff
</IfModule>

<IfModule mod_expires.c>
<Files ~ "\.(jpe?g|png|gif|css|js)$">
ExpiresActive on
ExpiresDefault "access plus 1 month"
FileETag None
<IfModule mod_headers.c>
Header append Cache-Control "public"
Header unset ETag
</IfModule>
</Files>
</IfModule>

# Disables auto directory index
<IfModule mod_autoindex.c>
Options -Indexes
</IfModule>

<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>

<IfModule mod_php5.c>
php_value memory_limit 256M
#  php_value max_execution_time 120
#  php_value upload_max_filesize 20M
php_flag phar.readonly off
php_flag magic_quotes_gpc off
php_flag session.auto_start off
php_flag suhosin.session.cryptua off
php_flag zend.ze1_compatibility_mode off
</IfModule>

#   AddType x-mapp-php5 .php
#   AddHandler x-mapp-php5 .php
Beste Grüße
Alexander

Viewing all articles
Browse latest Browse all 14594