Browser should show the addon domain and not the redirected domain

G

gopal

Guest
Hi


I will explain you how to redirect a addon domain to the redirect page but the browser should show only the addon domain only and not the redirected page

Step 1. Create the addon domain first

Step 2. Now add the following code in the .htaccess file

RewriteEngine on
RewriteCond %{HTTP_HOST} ^formationpalm.ca.service.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.formationpalm.ca.service.com$
RewriteRule ^(.*)$ http://palmtraining.ca/$1 [R=301,L]
Step 3. Create a Index.htm file under folder 'formationpalm" and add the lines,

<html>
<frameset rows="*">
<noframes>
<body>
<p>This page uses frames, but your browser doesn't support them.</p>
</body>
</noframes>
<frame name="main" src="http://www.brochstedt.com/typo/dummy-3.6.2/">
</frameset>

</html>

Step 4. Here service.com is the main domain

So the inference is when you type formationpalm.ca it will be redirected to palmtraining.ca but the browser will show formationpalm.ca and not the redirected domain palmtraining.ca

Regards
Gopal
 
Last edited by a moderator: