... | ... | @@ -15,9 +15,9 @@ Wir empfehlen folgenden Aufbau: |
|
|
# custom htaccess
|
|
|
```
|
|
|
|
|
|
## Beispiel:
|
|
|
## Beispiele:
|
|
|
|
|
|
HTACCESS Weiterleitung http://* nach http://www.*
|
|
|
### HTACCESS Weiterleitung http://* nach http://www.*
|
|
|
|
|
|
```
|
|
|
# custom htaccess
|
... | ... | @@ -25,7 +25,14 @@ RewriteCond %{HTTP_HOST} !^www\. |
|
|
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
|
|
|
```
|
|
|
|
|
|
HTACCESS Weiterleitung alles auf HTTPS
|
|
|
### HTACCESS Weiterleitung von `http://www.*` nach `http://*` (`www.` entfernen)
|
|
|
|
|
|
```
|
|
|
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
|
|
|
RewriteRule ^(.*)$ https://%1/$1 [R=301,L]
|
|
|
```
|
|
|
|
|
|
### HTACCESS Weiterleitung alles auf HTTPS
|
|
|
|
|
|
```
|
|
|
RewriteCond %{SERVER_PORT} !=443
|
... | ... | @@ -40,5 +47,5 @@ Dies geht einfach über folgenden CLI Befehl: |
|
|
./console htaccess
|
|
|
```
|
|
|
|
|
|
Weitere Beispiele:
|
|
|
### Weitere Beispiele:
|
|
|
- [QUIQQER Optimizer](https://dev.quiqqer.com/quiqqer/package-cache/wikis/apache) |
|
|
\ No newline at end of file |