?
Solved

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

Posted on 2009-05-14
2
Medium Priority
?
573 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 1000 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

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
The viewer will learn how to count occurrences of each item in an array.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Suggested Courses

771 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