.htaccess
Aus Mein Wiki
Sebra (Diskussion | Beiträge) (→Samples) |
Sebra (Diskussion | Beiträge) (→...) |
||
| Zeile 51: | Zeile 51: | ||
=== ... === | === ... === | ||
| - | ################################################### | + | ################################################### |
| - | # Turn the RewriteEngine on. # | + | # Turn the RewriteEngine on. # |
| - | ################################################### | + | ################################################### |
| - | + | RewriteEngine on | |
| - | RewriteEngine on | + | ################################################### |
| - | + | # Add a leading www to domain if one is missing. # | |
| - | ################################################### | + | ################################################### |
| - | # Add a leading www to domain if one is missing. # | + | # If this rule is used, the rewriting stops here # |
| - | ################################################### | + | # and then restarts from the beginning with the # |
| - | # If this rule is used, the rewriting stops here # | + | # new URL # |
| - | # and then restarts from the beginning with the # | + | ################################################### |
| - | # new URL # | + | |
| - | ################################################### | + | |
RewriteCond %{HTTP_HOST} !^www\. | RewriteCond %{HTTP_HOST} !^www\. | ||

