Solved

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

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

One of the typical problems I have experienced is when you have to move a web server from one hosting site to another. You normally prepare all on the new host, transfer the site, change DNS and cross your fingers hoping all will be ok on new server…
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

758 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now