Hy, I have an godaddy account for hosting and on that host i have multiple domains and godaddy offers me only one 404 redirect for all of my domains, ( example2.com/gadf is redirected to example1.com and example3.com/sagsdg is redirected to example1.com ) and i need for one of my domains to make the redirect on the same domain an for the subdomain for the same domaine to be redirected to the same subdomain or at least the domain ( example4.com/gsdhgfhf to be redirected to example4.com and example4.com/blog/gdfgsd to be redirected to example4.com/blog or to example4.com ) I really hope you understand what i meant and that you can help me.
How? The only meta redirect that i know applies for a visitor to a domain to be redirected to another domain
my redirect from the goddady host send all 404 errors to my first domain, will these work? don't i need to do something in the htacces ?
PHP redirects work by sending the header() call directly to the client, but additionally, you may want to do this. <?PHP $url = "http://www.newsite.com/"; die(header($url, 301)); ?> Code (markup):
added this code on the domain but if i try the 404 error i am still sent to my first domain not back to the domain i tried the 404 error.