Redirect your website using htaccess file
Posted on Nov 06, 2007 under Webserver |htaccess is the configuration file of the server and it is very useful at times when you need to do simple stuffs like redirect your old website to a new site.This is all you have to do:
Create an .htaccess file and include these lines:
Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http://www.gravin.net/$1 [R=301,L]
Replace the www.gravin.net with your own domain and then upload in our website. Thats all and don’t forget to save the file as .htaccess and upload to your server’s public_html directory. Now your website will be redirected to the new site. I’m using this to redirect my subdomainname to this domainname if anyone of you guys out there are curious how it works, feel free to visit my site which will be redirected to here
http://blog.gravin.net