Apart from this being a very bad idea, an easy solution would be to use a single-frame frameset as is done all over the place with "fake" URLs like all those .tk ones.
Be aware though that this approach is shooting yourself in the foot where it comes to SE ranking, and you're not doing you visitors a favor by obscuring the site structure either.
If I haven't managed to discourage you enough to give up on the idea, please get back for the necessary details on how to mark up a single-frame frameset.
Actually i even know that it can be happen with single frameset but i dont want to do it with frames. there is some meta tag or some tag which helps us to do so but i dont know about that. so if u people know any thing except frameset plz. let me know immediately
AFAIK this is only possible with a frameset. Who told you it is possible with a meta tag?
Look mr. some one told me that it may happen with meta tags if u dont know then dont comment.
This should work.
Hopefully that helps!Code:<HTML><HEAD> <META NAME="description" CONTENT="WEBSITE.com"> <META NAME="keywords" CONTENT=""> </HEAD> <FRAMESET border=0 rows="100%,*" frameborder="no" marginleft=0 margintop=0 marginright=0 marginbottom=0> <frame src="http://www.WEBSITE.com" scrolling=auto frameborder="no" border=0 noresize> <frame topmargin="0" marginwidth=0 scrolling=no marginheight=0 frameborder="no" border=0 noresize> </FRAMESET> </HTML>
Cheeky get. I'm trying to help you, so don't diss .Originally Posted by web
Your registrar may have a URL forwarding feature that allows for masking as well -- but this is doing pretty much the same thing as [unknown] posted. There is no meta way, so I think you might want to tell chilipie you're sorry, since actually he did know and was right to comment.
Meta can redirect a page for you, but it won't be a hidden URL. If you're on an apache server, you could redirect with .htaccess, I am not sure if this has the capability to mask the URL.
If you're on an apache server your could use mod_rewrite to mask URL's within your own site.
For example: (code goes in .htaccess)
This would take all requests for http://myfolio.com/sites/name-of-project/ and convert it to http://myfolio.com/folio-page.php?id=name-of-project to send to the server. The user would know nothing of this and would see http://myfolio.com/sites/name-of-project/ in their address bar.Code:RewriteEngine On RewriteBase / RewriteRule ^sites/?([_0-9a-z-]+)?/?$ /folio-page.php?id=$1 [QSA]
That won't make every page have the same url, but I can positively assure you; you do not want every page of your site to have the same url. Your regular visitors will hate you and search engines will ignore you. If you still want to do it, I'd say you're trying to pull some kind of scam; in which case give up, it won't work.
Last edited by mindlessLemming; 04-09-2005 at 05:25 AM.
I take no responsibility for the above nonsense.
This works better:
<iframe src=http://google.com width=100% noborder height=100% no scroll>
The HTML script above works on both Internet Explorer and Netscape/Firefox, etc.
Of course the problem in masking the URL is that people will never be able to return to the page that interests them because they wont know its address.
Kind of like if you visit Africa and while you are there you see something interesting and note down that its address is Africa. A few years later you decide to return to that spot but can't remember where in Africa to start looking for it.
At this writing I am likely your newest member--just joined! Aloha from beautiful Kauai!
Here's a point of view from the newcomer: Several people say it makes no sense to hide a URL. Never say never!
This is what I need to do and why I searched Google for this topic anyway. I designed a public input online survey at an unnamed survey research web site. They make it easy to build and administer surveys, but unfortunately their company's URL does not instill the type of confidence I want survey takers to have when they take the survey. I want to keep my own site's URL in the address bar even though my survey respondents will be on the web survey company's web site.
I pay the survey company for their services, don't want to provide them with free advertising, and I don't want the survey respondents distracted or turned off by seeing they're actually on someone else's web site and not on my organization's site--the one they agreed to take a survey for.
I think that's all a pretty good reason for masking/hiding/cloaking or whatever you technically do to a URL you don't want displayed. I'll experiment with the coding tips you've provided here, and I thank you all for them.
I have another reason to hide url addresses, and why I was searching this topic for a solution. For an Ecommerce Site. Even though the database file that holds all customer information is located outside of the root folder, the administrators file that you have to use to add and change your products can be accessed, and I'm sure there are plenty of people out there that know when they see the urls they know what program was used and can then set up a password generator. If the url is hidden or masked, then you can place that file anywhere and help hide that administrators file better.
There is another way, that I was hoping to avoid. You can use ISAPI rewrite programs to rewrite the urls on the server side. This can be a very tedious process and you have to buy the programs. The framesets would work the best, but the software that I use for the ecommerce store does not allow framesets.
So is there any other client side code that anyone else can think of?