How To Redirect A Domain For Free

Domain redirection is very common now a days and everyone need it because most companies own more than one domain names for their company. I would like to share a very simple and easy to under htaccess script that forward a whole domain to another domain name. There are few very simple steps involved to create this script.

I like to state an example and will try to explain each step. I hope it will help, Please feel free to contact in case of any help required.

Now, here are the steps, I would like to forward http://www.itoperationz.net towards http://www.itoperationz.com.

By going to the hosting panel of http://www.itoperationz.net I will place the under given script in an .htaccess file under public_html folder or whatever is the root folder for web server.

Redirect Script

Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http://www.itoperationz.com/$1 [R=301,L] (Replace http://www.itoperationz.com with your parent domain name)
AddHandler php5-script .php (Change PHP version accordingly)

That’s it, you are done, now go and visit the domain which you have redirected towards your parent domain by entering the address in the web browser’s address bar. It will automatically redirect towards your parent domain.

Note: Please don’t copy and paste the above script.