Code: Selecteer alles
RewriteEngine On
# no-www
RewriteCond %{HTTP_HOST} ^www\.domein.nl\.nl$ [NC]
RewriteRule ^(.*)$ [url=http://domein.nl/$1]http://domein.nl/$1[/url] [R=301,L]
N.b. dit is alleen van belang voor de zoekmachineresultaten.
Code: Selecteer alles
RewriteEngine On
# no-www
RewriteCond %{HTTP_HOST} ^www\.domein.nl\.nl$ [NC]
RewriteRule ^(.*)$ [url=http://domein.nl/$1]http://domein.nl/$1[/url] [R=301,L]
Code: Selecteer alles
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.domein\.nl[NC]
RewriteRule ^(.*)$ http://domein.nl/$1 [L,R=301]
Code: Selecteer alles
RewriteCond %{HTTP_HOST} ^www\.domein\.nl$ [NC]RewriteRule ^(.*)$ http://domein.nl/$1 [R=301,L]
Code: Selecteer alles
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
Code: Selecteer alles
RewriteEngine On
# no-www
RewriteCond %{HTTP_HOST} ^www\.domein\.nl [NC]
RewriteRule ^(.*)$ [url=http://domein.nl/$1]http://domein.nl/$1[/url] [R=301,L]
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress