rewrite domain redirect using htaccess

rewrite domain redirect using htaccess

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 use

RewriteEngine 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]

Leave a Reply

Your email address will not be published. Required fields are marked *

1 × one =

This site uses Akismet to reduce spam. Learn how your comment data is processed.