angelsp - 3:57 pm on Jun 11, 2013 (gmt 0)
We all know we can use .htaccess to 301 a website abc.com to cde.com
Now my situation is:
I pucahsed a shared hosting, /public_html/ is abc.com 's root, /public_html/www.cde.com/ is cde.com's root folder.
Whenever I changed .htacess of abc.com 's, it will affect cde.com.
for example, I put the following code to /public_html/.htaccess to redirect all the urls from abc.com to cde.com, but after I do so, when I type abc.com/test.php, it redirects to cde.com/test.php no problem, but gives a 404 error, for now all the links from cde.com is dead and unacessable. When i delete the following code from .htacess, cde.com works fine again.
# This allows you to redirect your entire website to any other domain
Redirect 301 / http://cde.com/
My question is, how to change /public_html/.htaccess to redirect abc.com's url's to cde.com and don't affect cde.com website running.
Thank you for yoru help.