Hallo,
ich möchte per .htaccess eine Subdomain einrichten um dort statisches Content wie Schaltknöpfe, Produktbilder etc. auszulagern
dazu hatte ich mir dieses Code rausgegoogelt:
RewriteCond %{HTTP_HOST} img.meinedomain.de $ [NC]
RewriteCond %{REQUEST_URI} !/staticimg/
RewriteRule ^(.*)$ staticimg/ [L]
Füge ich diese Code aber in .htaccess die Seo-Commerce bereitstellt erhalte ich auf alles Seiten nur einen 500 Server Fehler.
Hier das Orginal:
RewriteEngine On
# COMMENT THE FOLLOWIN LINE, IF YOU GET AN ERROR 500 (Internal Server Error)
Options +FollowSymlinks
# Umleitung auf www Adresse, aber nur, wenn nicht Subdomain
Options +SymLinksIfOwnerMatch
RewriteCond %{HTTP_HOST} !^www\..* [NC]
RewriteCond %{HTTP_HOST} !^.*\..*\..* [NC]
RewriteRule ^(.*) http://www.%{HTTP_HOST}/$1 [R=301,L]
# SET THE FOLLOWING LINE, IF YOUR SHOP RUNS IN AN SUBFOLDER. ALSO IF YOU GET AN ERROR 500 (Internal Server Error) ON SOME SYSTEMS
# EXAMPLE: If your shop is located at https://support.commerce-seo.de/www.yourdomain.com/shop set the following line: "RewriteBase /shop"
RewriteBase /
# Onlie use Rewrite Engine, if Directory or File not exist
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) - [PT,L]
RewriteRule ^(.*)(.+)404.php$ 404.php [qsappend,L]
RewriteRule ^(.*)(.+)\.html$ commerce_seo_url.php?linkurl=$1$2 [qsappend,L]
RewriteCond %{REQUEST_FILENAME} !\.html$ [OR]
RewriteRule ^(.*)--Seite-(.*[1-9])?(.*)$ commerce_seo_url.php?linkurl=$1&page=$2 [qsappend,L]
RewriteCond %{REQUEST_FILENAME} !\.html$ [OR]
RewriteRule ^(.*)--Page-(.*[1-9])?(.*)$ commerce_seo_url.php?linkurl=$1&page=$2 [qsappend,L]
RewriteCond %{REQUEST_FILENAME} !\.html$ [OR]
RewriteRule ^(.*)$ commerce_seo_url.php?linkurl=$1 [qsappend,L]
Wie bekomme ich den Subdomain-Code da fehlerfrei hinein?
Eine # hatte ich auch schon vor: Options +FollowSymlinks
gesetzt. Das bringt auch nichts.