Forum Moderators: open

Message Too Old, No Replies

Address bar doesn't change for inner pages - creates a bookmarking problem

         

phoenixis

6:47 am on Mar 5, 2006 (gmt 0)



Hi All,

I own a domain name that has been set up so that when it is typed in, it forwards to and masks the long address of a free space site where my website is hosted.

So, example.org forwards to http://example.com/example, keeping the address "example.org" in the address bar.

This is all well and good because it creates a succinct address, but the problems arise when someone tries to bookmark the page. Since the address bar doesn't change as people move from page to page, when they go to bookmark, it only bookmarks in the index page.

Is there some code that I can use to make it so that the address bar can be modified to whatever I specify so that when people go to bookmark the page, it shows the correct address?

[edited by: volatilegx at 7:49 pm (utc) on Mar. 5, 2006]

[edited by: encyclo at 8:00 pm (utc) on Mar. 5, 2006]
[edit reason] remove URL and domain [/edit]

tedster

1:39 am on Mar 6, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hello phoenixis, and welcome to the forums.

Because the address in the location bar doesn't change, you almost definitely have a frameset situation. If you want to continue to have the website show the short address (your dedicated domain name) then you've got a challenge if you stick with the free host.

There is some javascript you might want to adapt so people can bookmark internal pages, but the urls will become longer:

[webmasterworld.com...]

See message #21 - FORCE MANY PAGES INTO FRAMES with one simple script

kaled

11:36 am on Mar 6, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Such domain forwarding services are best avoided unless you have a good reason. However, depending on how it works, if you add the following it may solve your problem.

<head>
.....
<base target="_top">
.....
</head>

This changes the default target window for links. If individual links specify a target, they will have to be edited.

Kaled.