Jul 25, 2008

Redirect Problem

Free Web Hosting, No Ads > CONTRIBUTE > Computers > Programming Languages > HTML, XML etc..

free web hosting

Redirect Problem

paulmason411
Hi, does anyone know if there is a way to display say www.b.com at www.a.com without using redirect from a to b.

The real problem i have is if you try going to www.frusciante.net you will get redirected to www.locborg.de/fru where the files are stored.

The code in frusciante.net is:

HTML
<FRAMESET border=0 frameSpacing=0 rows=100%,* frameBorder=0>
<FRAME name=bannerframe src="http://www.locborg.de/fru/" noResize>
</FRAMESET>


So is there a way to display the files from locborg.de/fru while maintaining the frusciante.net URL in the browser?

Reply

BArS
You want to do it with help of html or php (for example)?
if with help of html try FRAMES like you do.
if PHP try to use include function.

Reply

farsiscript
dear paulmason411 if you want php code for redirect use header function. for more info you can use this link :
http://ir.php.net/manual/en/function.header.php
by this function you can redirect urls and files to an other plache wink.gif

Reply

githoko
QUOTE(BArS @ Dec 8 2006, 12:19 PM) *

You want to do it with help of html or php (for example)?
if with help of html try FRAMES like you do.
if PHP try to use include function.


In the old day they used frames to this. The external frames have generally been dropped because of the problems they give search engines. But unless you are using some scripting language like jsp, the only choice I can think of, i.e. the only html tag I know of with a src attribute that can load an entire other page is the inline frame tag i.e. iframe.

So the option you have is to write: <iframe src="www.b.com" style="visibility:hidden"></iframe>. What this will do is to hide you iframe as if it didn't exist. Then when you want to redirect to it, simply use javascript to make the visibility property : visible.

 

 

 


Reply

serverph
as already suggested, try using iframes. search trap17 forums regarding iframes, i believe there's a bunch of threads on this regard.

but better for your domain, is to have it parked/addon in your host (www.locborg.de/fru) so that it gives you frusciante.net without a trace of locborg anywhere in your site links. (parked and addon domains have been extensively discussed in trap17 also, so it might help you search the forums if you want). to do this your host has to support adding/parking a domain via cpanel, so consult with locborg if this can be done. smile.gif

Reply

FirefoxRocks
Why don't you just store the files here on Trap17 and then have the domain http://frusciante.net pointed to your hosting account? That would be a lot easier. You wouldn't need frames then. You could also try this:
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><title>Home - [url=http://frusciante.net</title></head>]http://frusciante.net</title></head>[/url]
<body>
<iframe src="http://www.locborg.de/fru" frameborder="0" width="100%" height="100%" scrolling="auto"><p><a href="http://www.locborg.de/fru">Go to [url=http://frusciante.net/</a>]http://frusciante.net/</a>[/url]. Your browser does not support frames.</p></iframe>
</body>
</html>


It should help. Because the <object> tag isn't compatible with IE, I'll use iFrame for now.

--EDIT 5:37PM--
Never mind, it didn't work. I just tested it. The site has this on it:
CODE
<script language="JavaScript" type="text/javascript">
if( top.parent.frames.length > 0)
top.parent.location.href = self.location.href;
</script>


This means that if the page isn't EXACTLY at the very top corner of the document, it will reload itself into a new document.

Reply

hitmanblood
Or you could just be using iframe it should work at least I've tryed it several times although it would not change your address in the address bar if you had intention to do that.

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Similar Topics

Keywords : redirect

  1. Redirect Code Help - (8)
    Can someone give me the code which redirects you automatically in the whole page instead of only in
    the frame? I'm using this code, but it just redirects inside a frame... CODE <meta
    HTTP-EQUIV="REFRESH" content="0; url=http://www.something.com"> But now
    .tk has added a ad to the pages so I don't want to use it anymore, so I want that people
    entering the site is being redirected to the "real" domain name now......
  2. How To Redirect - Not as simple as it sounds (5)
  3. Countdown Till Redirect - (4)
    ok here is a question: how would i do something that says you will be redirected in 15 seconds and
    then changes the number till the redirection takes place. this is planned for a custom 404 error
    page. im not just asking for the countdown but also how to redirect at all. thankfull for any
    help /smile.gif' border='0' style='vertical-align:middle' alt='smile.gif' /> Lucas...
  4. 301 Redirect And Bots - a small doubt (6)
    Hi guys, I am presently developing a website which depends on JavaScript for its design. The
    problem is that some browsers do not JavaScript enabled. So, in case Script cannot be run on the
    browser, I have given a 301 (Meta) Redirect to a page which will tell them to enable the script.
    What about the Search engine bots? Will they undergo the 301 Redirect? Or can they see the
    actual page? Please help. ...
  5. Url Redirection = Javascript+html - Redirect using scripts! (4)
    In javascript Browser redirection can be done in 3 ways: 1) Alert Redirect: CODE
    <html> <script>     alert("This page has been moved to a new location...
    click OK to be redirected.");     location = "http://www.your-website.com";
    </script> </html> 2) Confirm and Redirect: CODE <html>
    <script>     if(confirm("This page has been moved to a new location... would you
    like to be redirected"))     {   location = "http://www.your-website.com";
        }...



Looking for redirect, problem

Searching Video's for redirect, problem
advertisement



Redirect Problem



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE