redirect site with htaccess

From WebHostingNeeds.com
Jump to: navigation, search

Create .htaccess file with following.

Method 1

Redirect 301 / http://www.newdomain.com/


Method 2

RewriteEngine on 
RewriteRule ^(.*)$ http://www.newdomain.com/$1 [R=301,L]


Redirect Everything to a Page

Redirect 301 / http://www.newdomain.com/site-moved.html

redirect

htaccess