.htaccess: verschil tussen versies
Uit dotSearch
| Regel 10: | Regel 10: | ||
Require valid-user | Require valid-user | ||
| + | |||
| + | |||
| + | == Domain based redirection == | ||
| + | |||
| + | Options +FollowSymlinks | ||
| + | |||
| + | RewriteEngine On | ||
| + | |||
| + | |||
| + | RewriteCond %{HTTP_HOST} ^(www\.)?kokinternetmarketing.nl [NC,OR] | ||
| + | |||
| + | RewriteCond %{HTTP_HOST} ^(www\.)?kok-internet-marketing.nl [NC] | ||
| + | |||
| + | RewriteRule ^(.*)$ http://dotsearch.nl/$1 [R=301,NC] | ||
| + | |||
| + | |||
| + | RewriteCond %{HTTP_HOST} ^(www\.)?x-ite.nl [NC,OR] | ||
| + | |||
| + | RewriteCond %{HTTP_HOST} ^(www\.)?rudecock.com [NC] | ||
| + | |||
| + | RewriteRule ^(.*)$ http://www.ruudkok.nl/$1 [R=301,NC] | ||
Huidige versie van 12 aug 2011 om 20:17
Beveilig map met user/pass[bewerken]
AuthUserFile /home/sequence1980/localfolder/.htpasswd
AuthType Basic
AuthName "My Secret Folder"
Require valid-user
Domain based redirection[bewerken]
Options +FollowSymlinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www\.)?kokinternetmarketing.nl [NC,OR]
RewriteCond %{HTTP_HOST} ^(www\.)?kok-internet-marketing.nl [NC]
RewriteRule ^(.*)$ http://dotsearch.nl/$1 [R=301,NC]
RewriteCond %{HTTP_HOST} ^(www\.)?x-ite.nl [NC,OR]
RewriteCond %{HTTP_HOST} ^(www\.)?rudecock.com [NC]
RewriteRule ^(.*)$ http://www.ruudkok.nl/$1 [R=301,NC]