TrainReq
01-22-2007, 02:41 AM
Right now.. i did something in cpanel to make everything on my domain redirect to somewhere else.. for example , if you go to
www.mydomain.com , it will redirect to mydomain2.com
and if you go to mydomain.com/eeee.html , it will also redirect to mydomain2.com , so more/less mydomain.com/anything , will automaticly redirect
my question is, in the .htaccess file ... how can I get the main part to redirect to mydomain2.com , but have it to where mydomain.com/eeee.html , etc wont redirect (it will go to the actual site).
I do not want to make index.php file with headerlocation , i want to do it within the .htaccess file
please help.
www.mydomain.com , it will redirect to mydomain2.com
and if you go to mydomain.com/eeee.html , it will also redirect to mydomain2.com , so more/less mydomain.com/anything , will automaticly redirect
my question is, in the .htaccess file ... how can I get the main part to redirect to mydomain2.com , but have it to where mydomain.com/eeee.html , etc wont redirect (it will go to the actual site).
I do not want to make index.php file with headerlocation , i want to do it within the .htaccess file
please help.