Website URL Masking

They have: 13 posts

Joined: Jun 2001

Hi there,

Does anyone know if it is possible to have URL masking on a site using javascript? ie yoursite.com/main.htm will become yoursite.com.

Any help would be great.

Please tell me where im going wrong? It keeps coming out green......

Jack Michaelson's picture

He has: 1,733 posts

Joined: Dec 1999

Just use frames and place every html-doc in the root folder. Make sure the first page is 'Index.html' or whatever your host wants.

They have: 13 posts

Joined: Jun 2001

OK I have created a frameset (100%,0%) which works fine, but if I have this as my "index" page will my search engine status be affected, e.g. the entry in the search engine will look like....
"1. yoursite.com: Your browser does not support frames blah blah" instead of....
"1. yoursite.com: the best place for website advice blah blah"

and if that is the case then will incerting meta tags to the index page make any difference?

Hope this makes sense?

Cheers.....

Please tell me where im going wrong? It keeps coming out green......

They have: 13 posts

Joined: Jun 2001

Not to worry I have come up with a nice solution. Thanks for your help.

Cheers......

Jack Michaelson's picture

He has: 1,733 posts

Joined: Dec 1999

Well... what is your solution?

They have: 13 posts

Joined: Jun 2001

I created a frameset:
"

"

Our front page is a disclaimer so that remained the same (with all the meta tag structure intact) apart from the link to the "Agree" button for which I created a quick Javascript:

function blankurl(){
document.write('');
}

Using the Frameset this way ensures that the Search Engine status (indexing) remains intact as everything from the site is now called from within the javascript/frameset.
This eleminates the "1.) yoursite.com: Your browser does not support frames....blah.....blah" problem.

Cheers..........

Please tell me where im going wrong? It keeps coming out green......

They have: 13 posts

Joined: Jun 2001

Ok, I thought my troubles were over, but no! Netscape (who, let's not forget, invented "frames" in the first place!) does not like the above code. If it were down to me all netscape users would be made to download the latest version of IE and banned from ever touching that dirty, crappy, badly written browser ever AGAIN!

Ahhh.....I feel better now.

On to the problem, when the Frameset is created (100%,0% or 0%,100%) Netscape does not seem to understand (ie create one frame that fills the screen and another frame that does not actually exist) Netscape decides that it does not like the "0%" frame and creates a page with two frames each at "50%". (sadists! the lot of em! little buggers, if I ever catch the people who programmed it i'll........) I have tried creating a "99%,1%" frameset and that works fine (although very ugly) I have also tried " just on it's own, IE likes this fine (you could give IE a shredded piece of code written in the 1960's and it would still love it) but Netscape just displays a blank screen (very helpful)

Now I know that some (strange) people out there think that Netscape is the Dogs Boll*x, and unfortunately we have to cater for them, but if there are any of you reading this (although, it's probably displayed in Arabic or something in NS) You can see just how frustrating it is designing pages for it!

Sorry, im rambling........

Is there anyone out there who can suggest another way of getting round this problem? (without actually having to resort to the use of fullon frames themselves)

Any help would be great!

Please tell me where im going wrong? It keeps coming out green......

They have: 13 posts

Joined: Jun 2001

Finally sorted it it.....

The star states that what ever is left should be used for the other frame (in this case nothing is left) it works for Netscape and IE. Feel free to write to Netscape and tell them that there browser is a right awkward bugger to write for.

Cheers..........

Please tell me where im going wrong? It keeps coming out green......

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.