rewrite domain redirect using htaccess
- Angelo Schalley
- Dec, 22, 2010
- html / php, joomla, Plesk Linux
- No Comments
Fill your .htaccess file and place it in your root directory :
## Can be commented out if causes errors, see notes above.
Options +FollowSymLinks#
# mod_rewrite in useRewriteEngine On
########## Redirect van www.domain.be
# redirect some other domains
RewriteCond %{HTTP_HOST} ^domain\.be$ [NC,OR]
RewriteCond %{HTTP_HOST} ^www\.domain\.be$ [NC]
RewriteRule ^(.*)$ http://www.redirectdomain.be/iets.html [R=301,L]