Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Page 1 of 2 12 LastLast
Results 1 to 15 of 26
  1. #1
    web
    web is offline
    New to the CF scene
    Join Date
    Apr 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How to hide url in Address bar

    hi,
    I want to keep same url for all the pages of my site.
    ex: if my site is www.abc.com then
    about us of it should be displya www.abc.com instead of www.abc.com/aboutus.htm

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    The Netherlands, Baarn, Ut.
    Posts
    4,252
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Lousy idea

    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.
    Regards,
    Ronald.
    ronaldvanderwijden.com

  • #3
    Senior Coder JamieR's Avatar
    Join Date
    Oct 2004
    Location
    United Kingdom
    Posts
    3,161
    Thanks
    0
    Thanked 5 Times in 5 Posts
    I would have thought the only way to do is is via a single frameset > however, I wouldnt do it at all personally.

  • #4
    web
    web is offline
    New to the CF scene
    Join Date
    Apr 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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

  • #5
    Senior Coder chilipie's Avatar
    Join Date
    Jul 2004
    Location
    Shrewsbury, UK Age: 16
    Posts
    1,117
    Thanks
    0
    Thanked 0 Times in 0 Posts
    AFAIK this is only possible with a frameset. Who told you it is possible with a meta tag?

  • #6
    web
    web is offline
    New to the CF scene
    Join Date
    Apr 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Look mr. some one told me that it may happen with meta tags if u dont know then dont comment.

  • #7
    Senior Coder
    Join Date
    Jun 2002
    Location
    The Netherlands, Baarn, Ut.
    Posts
    4,252
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Polite?

    Please read the Posting rules, especially no. 1.1
    Regards,
    Ronald.
    ronaldvanderwijden.com

  • #8
    New Coder
    Join Date
    Apr 2005
    Posts
    95
    Thanks
    0
    Thanked 0 Times in 0 Posts
    This should work.
    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>
    Hopefully that helps!

  • #9
    Senior Coder chilipie's Avatar
    Join Date
    Jul 2004
    Location
    Shrewsbury, UK Age: 16
    Posts
    1,117
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by web
    Look mr. some one told me that it may happen with meta tags if u dont know then dont comment.
    Cheeky get. I'm trying to help you, so don't diss .

  • #10
    Senior Coder
    Join Date
    Apr 2003
    Location
    San Francisco, CA
    Posts
    2,469
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.
    // Art is what you can get away with. <-- Andy Warhol
    ...:.:::: bradyjfrey.com : htmldog : ::::.:...

  • #11
    Senior Coder
    Join Date
    Oct 2003
    Location
    Australia
    Posts
    1,963
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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)
    Code:
    RewriteEngine On
    RewriteBase /
    RewriteRule ^sites/?([_0-9a-z-]+)?/?$ /folio-page.php?id=$1 [QSA]
    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.
    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.

    have fun
    Last edited by mindlessLemming; 04-09-2005 at 06:25 AM.

    I take no responsibility for the above nonsense.


    Left Justified

  • #12
    New to the CF scene
    Join Date
    Feb 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Lightbulb Try this everyone...........

    This works better:


    <html>
    <iframe src=http://google.com width=100% noborder height=100% no scroll>
    </html>


    **********************
    The HTML script above works on both Internet Explorer and Netscape/Firefox, etc.

    ******************************
    *************************************
    ******************************************

    Quote Originally Posted by [Unknown] View Post
    This should work.
    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>
    Hopefully that helps!

  • #13
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,642
    Thanks
    0
    Thanked 649 Times in 639 Posts
    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.
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.

  • #14
    New to the CF scene
    Join Date
    Apr 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    hiding URL can make sense...

    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.

    Aloha, out!

  • #15
    New to the CF scene
    Join Date
    Jul 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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?


  •  
    Page 1 of 2 12 LastLast

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •