This might be easy to solve or impossible. I just did url masking with iframe and works perfectly. My goal is to keep same url on all pages so that visitor does not see the submenu structure. This is a first step, then I would do geo IP redirect and/or language redirect so that who gets to index iframe would then, without noticing, sent to the minimal info site or to the maxi info site. I need to do this because if a visitor is from other countries than mine, he will see all about the offer with prices and details, if instead he is from my same country he will see a minimal information. This because some competitors are copying my offer and pricing and even phrasing and of course keyword structure. Yes, there are many ways to check submenu, one easy is to get google map listed directory with any info service. Sometime google will list a sub page just because it has some keywords that are on that specific page. Here is the idea. Whoever gets to submenu pages not through internal link are redirected to the home page. I don't know how to solve the issue "not trhough the internal link" because if it does not work it would create a loop. I would also like to make it in HTML because that's the only I know. By the way, a secondary effect which is really nice, is that you are then protecting your coding because the only available is the iframe code on the index page, all the rest is not visible as if you go to subpages via internal links you will still be viewing the iframe code. If anyone is following this idea, I need help in redirecting sub pages to index IF NOT COMING FROM INTERNAL LINK. If I get this solved I will share the example with everyone it is something really cool and does not seem to affect seo because you are not giving a nofollow instruction.... PS it is not the sight of the signature but if it works it would also be applied to that....
No help? Well I have found a way. Not only that but I have protected (unwanted) my html script which is something to consider. So...whoever wants to know how to protect html script and not show anything about your site, including how directories are made, ask me! It wasn't easy.