Solved

How can you create Framed URL Forwarding within the .htaccess file?

Posted on 2009-05-14
2
548 Views
Last Modified: 2012-05-07
 I need to forward our entire website(home page redirect) to a different server.  I do not want it to show the new server in the address bar and I think this can done through frame forwarding through the .htaccess file, but I have not been able to find the right wording.  Every time I try one of the suggestions I find online I end up getting a syntax error once I ftp it up.  

These are the two best examples I have found and I can not get either to work:

<HTML>
<HEAD>

<TITLE>OUR COMPANY NAME</TITLE>
</HEAD>
<FRAMESET rows="100%,*" border=0 frameborder=0 framespacing=0>
<FRAME name=top src="http://OUR NEW SITE" noresize>
</FRAMESET>
</HTML>

or

<frameset rows="100%">
  <frame src="http://OUR NEW SITE">
</frameset>
<noframes>
  <body>Please follow <a href="http://OUR NEW SITE">link</a>!</body>
</noframes>
 
<HTML>
<FRAMESET ROWS="*,0" FRAMEBORDER=0 BORDER=0 FRAMESPACING=0>
<FRAME SRC="http://OUR NEW SITE"
</FRAMESET>
</HTML>
0
Comment
Question by:raycastillo
2 Comments
 
LVL 1

Assisted Solution

by:halonx
halonx earned 250 total points
ID: 24426368
Why not use an iFrame instead of actual frames?

Inside the IFRAME tag is what to display if the browser doesn't support IFRAMEs.
<IFRAME SRC="newpage.html" WIDTH=600 HEIGHT=600>
Your browser can't view iFrames, please go to <A HREF="newpage.html">our new page instead</A>.
</IFRAME>

Open in new window

0
 

Accepted Solution

by:
raycastillo earned 0 total points
ID: 24487402
I was finally able to do frame forwarding via default.html instead of .htaccess and it works fine, most importantly it hides the forwarded name. IFRAME would have worked to, but would have taken more work for width and height.
0

Featured Post

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Batch, VBS, and scripts in general are incredibly useful for repetitive tasks.  Some tasks can take a while to complete and it can be annoying to check back only to discover that your script finished 5 minutes ago.  Some scripts may complete nearly …
This article will show, step by step, how to integrate R code into a R Sweave document
Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question