Domain masking

m (Created page with "<div align=justify>In some cases you would like the visitors go to your website, but see the content from a different one with the URL staying the same. This can be achieved with...")
 
m
 
Line 10: Line 10:
 
  </head>
 
  </head>
 
  <frameset rows="100%,0" border="0">
 
  <frameset rows="100%,0" border="0">
  <frame src="http://yourotherdomain.com" frameborder="0">
+
  <frame src="http://otherdomain.com" frameborder="0">
 
  <frame frameborder="0">
 
  <frame frameborder="0">
 
  </frameset>
 
  </frameset>
 
  </html>
 
  </html>
  
'''Note:''' if there is already ''index.html'' file under ''public_html'' folder, rename it to something different before creating a new one.</div>
+
'''Note:''' if there is already ''index.html'' file under ''public_html'' folder, rename it to something different before creating a new one.
 +
 
 +
Domain masking can be also done using .htaccess file. Add the following rewrite rule to it:
 +
 
 +
RewriteEngine On
 +
RewriteRule ^something\/?$ \/something\/else\/
 +
 
 +
This will direct every visitor accessing:
 +
 
 +
http://yourdomain.com/something
 +
 
 +
to the content of:
 +
 
 +
http://yourdomain.com/something/else
 +
 
 +
while the URL will remain unchanged.</div>

Latest revision as of 11:31, 11 January 2012

rss feed for my website