URL issue
- Started
- Last post
- 20 Responses
- ESKEMA
ok web people, I have this issue and can't seem to work it out...
I recently bought a new domain since my old one was a free redirect thing and was hosted for free too. now I have my new domain wich works fine but I want the old one to redirect to the new wich is not a problem either.
the problem is that the old one redirects but keep it's domain name in the url bar. how can I make so the new domain appears in the URL bar?don't know if this is clear to understand but please help
thanks
- Jaline0
Where are you hosted?
Are you sure it is redirecting and not mirroring?
- Nairn0
This feature is dependent on the capabilities of the host who controls your old url.
You could achieve the same thing with your own-coded URL redirect.
- d_rek0
yeah, might need to change your nameserver address too.
- ********0
sounds like a frameset botch.
Just upload a script to olddomain.com to redirect to newdomain.com and remove the funky stuff added by your old host...
- ESKEMA0
The old URL is a free one, with no host at all. the only option I have with it is to enter a url so it redirects to it, nothing else. and always stays in the URL bar. it's driving me nuts!!
- ribit0
If you aren't directly setting it yourself, your registrar should offer these 3 options somewhere in their control panel...
http://www.dynonames.com/forward…
- d_rek0
well, contact the company and see if you can't either a) buy up the old free URL or b) transfer the domain to your new hosting account
- ribit0
or get them to enable domain masking, not just forwarding (may not be free)
- ESKEMA0
hmmm. it's a really basic company and only does free forwarding... no other features.
can't I put some code in my page so it's always display the correct URL?
- ribit0
hang on. they are doing either masking or framed forwarding, right?
(Can you see if your site is appearing in a frameset?)If you have access to your server config you can do just about anything.. depends what tools you have... (just a control panel? whose?)
- ESKEMA0
well my site appears in a frameset because that's how I built it...
I'm no web designer so my knowledge is limited and don't have the knowledge to build it with only css or any other way.now I'm at webhostingbuzz and have Cpanel to work with
what can be done?
- ********0
clear the frameset when re-directing. How are you re-directing? header refresh, javascript?
- ESKEMA0
how do I clear the frameset?
- ********0
I don't know! Maybe...
1. use a Meta Refresh in the old site/page (<meta http-equiv="refresh" content="0;url=http://www.yoursite.com/newpage.htm">
2. As new site is loaded it needs a <Body>... onLoad=(some javascript who makes this page load a the "parent" level.
- ********0
not "parent" I mean... new page must load in "_top" target level.
- ********0
hmmm... try having a link in the old site that loads next page at "_top" and see if that does the job.
<a href="http://www.newsite">link</a>
- ribit0
Here's a Frame Breakout script that you use on the new site...
http://javascript.about.com/libr…(You can also use scripts like this to prevent others from using your content on their site within a frameset)
- ESKEMA0
but the old page is the same as the new one... the site is the same, the difference is just the domain name.
I had the site hosted on my company server and used a free domain that the only option it gives is just redirect to a url.
now I bought a new domain, and transferred the whole site to there. but want the old URL still working... wich it does but won't let see the new adress in the bar...
- ESKEMA0
I used a page with a _top link and it's working...
not the best solution but it works.thanks
- ********0
It's working but it's not the best solution?! Arrrgh.
Use a meta refresh in the old site now (<meta http-equiv="refresh" content="0;url=http://www.newdomain.com/index.html">)
Ribit's snippet is good, but in this case using only html insures that it'll work even in browsers that are blocking all javascript.
- I mean - you must use Ribit's solution in the new site... i don't think there's a perfect solution for this.********
- i meant only html 'would' insure********
- I mean - you must use Ribit's solution in the new site... i don't think there's a perfect solution for this.