Solved

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

Posted on 2009-05-14
2
560 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free NetCrunch network monitor licenses!

Only on Experts-Exchange: Sign-up for a free-trial and we'll send you your permanent license!

Here is what you get: 30 Nodes | Unlimited Sensors | No Time Restrictions | Absolutely FREE!

Act now. This offer ends July 14, 2017.

Question has a verified solution.

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

This article will show, step by step, how to integrate R code into a R Sweave document
Lease-to-own eliminates the expenditure of hardware replacement and allows you to pay off the server over time. Usually, this is much cheaper than leasing servers. Think of lease-to-own as credit without interest.
Learn the basics of lists in Python. Lists, as their name suggests, are a means for ordering and storing values. : Lists are declared using brackets; for example: t = [1, 2, 3]: Lists may contain a mix of data types; for example: t = ['string', 1, T…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

691 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