View Full Version : Redirection without cloaking

04-02-2011, 02:52 PM
I want to redirect www.seconddomain.com to a sub directory inside the the main domain.

firstdomain.com points to the root - public_html
seconddomain.com should redirect to - public_html/foldername

I have the seconddomain.com parked and redirected through cpanel. if someone enters seconddomain.com I want it to show up as www.firstdomain.com/foldername
how can I achieve this through .htaccess


04-02-2011, 09:01 PM
why would you want it to show up like that? and secondly i dont believe you can through htaccess... You can use a php redirect script if you really wanted to...

index.php (on seconddomain.com)

header("refresh: 0; http://firstdomain.com");

Should be a little latency but shouldn't be a HUGE deal and it will accomplish what you're trying to do...