How do you make this 301 redirect using php only?

Rebecca May 24, 2010
Pinterest Stumbleupon Whatsapp

I would like www enforced and file structure intact.

e.g. http://subdomain.domain.com/ants.php redirects to http://www.newdomain.org/ants.php
e.g. http://newdomain.org/dogs.php redirects to http://www.newdomain.org/dogs.php

Would I also use an add-on domain? Or would a parked domain be better?

Ads by Google

Ads by Google