Solved

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

Posted on 2009-05-14
2
539 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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
The viewer will learn how to dynamically set the form action using jQuery.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

803 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