301 redirect one domain to another using .htaccess

/ Published in: Other
Save to your folder(s)

This will redirect all pages from one domain, to the homepage of another domain.

Copy this code and paste it in your HTML
  1. RewriteEngine On
  2. RewriteRule ^(.*)$ http://www.example.com/$1 [R=301]

URL: http://daipratt.co.uk/internet-and-programming/

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.