Subdomains mod_rewrite > Bitte Hilfe
Verfasst: 18.10.2013, 07:35
Hallo zusammen.
Wir haben folgendes Problem: Unser webmaster ist nicht mehr im Unternehmen und wir müssen eine Änderung an der .htaccess vornehmen.
Ziel: subdomain.domain.com soll erreichbar sein
Erledigt:
- Verzeichnis "subdomaindir" ist angelegt, ok
- Backend 1&1 ist subdomain angelegt und aktiv, ok
- Backend wurde subdomain dem "subdomaindir" zugewiesen, ok
- im "subdomaindir" liegt eine datei index.html (zum testen)
Derzeit sieht unsere Datei so aus:
Options -MultiViews
RewriteEngine on
RewriteCond %{REQUEST_URI} !^/(livezilla)
RewriteCond %{REQUEST_URI} !^/(xxxxx-xxxxxx/index.php)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/(gn)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /shop/index.php?q=$1 [L,QSA]
AddType x-mapp-php5 .php
AddHandler x-mapp-php5 .php
Redirect /index.html https://www.domain.com/shop/
Frage:
Was muss geändert / hinzugefügt werden, damit subdomains erreichbar sind?
Vielen Dank für Eure Hilfe, bin sicher ich lerne was.
Gruß
tom
Wir haben folgendes Problem: Unser webmaster ist nicht mehr im Unternehmen und wir müssen eine Änderung an der .htaccess vornehmen.
Ziel: subdomain.domain.com soll erreichbar sein
Erledigt:
- Verzeichnis "subdomaindir" ist angelegt, ok
- Backend 1&1 ist subdomain angelegt und aktiv, ok
- Backend wurde subdomain dem "subdomaindir" zugewiesen, ok
- im "subdomaindir" liegt eine datei index.html (zum testen)
Derzeit sieht unsere Datei so aus:
Options -MultiViews
RewriteEngine on
RewriteCond %{REQUEST_URI} !^/(livezilla)
RewriteCond %{REQUEST_URI} !^/(xxxxx-xxxxxx/index.php)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/(gn)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /shop/index.php?q=$1 [L,QSA]
AddType x-mapp-php5 .php
AddHandler x-mapp-php5 .php
Redirect /index.html https://www.domain.com/shop/
Frage:
Was muss geändert / hinzugefügt werden, damit subdomains erreichbar sind?
Vielen Dank für Eure Hilfe, bin sicher ich lerne was.
Gruß
tom