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.
Results 1 to 12 of 12
  1. #1
    New Coder
    Join Date
    Sep 2002
    Location
    Las Vegas, NV, USA
    Posts
    34
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Hide address bar

    I try to hide the adress bar of the page, so the user can not see the address of the actual webpage (only the standard address e.g. http://www.example.com.
    Thanks
    Markus

  • #2
    Regular Coder
    Join Date
    May 2008
    Location
    Lost in Localhost...
    Posts
    702
    Thanks
    3
    Thanked 43 Times in 42 Posts
    Sounds illegal. Why would you want to do that?

  • #3
    Senior Coder CFMaBiSmAd's Avatar
    Join Date
    Oct 2006
    Location
    Denver, Colorado USA
    Posts
    3,122
    Thanks
    2
    Thanked 327 Times in 319 Posts
    Actually, it sounds phishy
    If you are learning PHP, developing PHP code, or debugging PHP code, do yourself a favor and check your web server log for errors and/or turn on full PHP error reporting in php.ini or in a .htaccess file to get PHP to help you.

  • #4
    New Coder
    Join Date
    Sep 2002
    Location
    Las Vegas, NV, USA
    Posts
    34
    Thanks
    4
    Thanked 0 Times in 0 Posts
    Well, I see this some times on other website, you only see the main url in the address bar and I think this is cool, because you don't see all the "ugly" page names.

  • #5
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,678
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    Presenting a website is one thing. Taking control of the users browser is another. It's usually not appreciated.
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • #6
    Senior Coder CFMaBiSmAd's Avatar
    Join Date
    Oct 2006
    Location
    Denver, Colorado USA
    Posts
    3,122
    Thanks
    2
    Thanked 327 Times in 319 Posts
    The neat URL's are done by rewriting the URL on the server, not by hiding anything in the browser.
    If you are learning PHP, developing PHP code, or debugging PHP code, do yourself a favor and check your web server log for errors and/or turn on full PHP error reporting in php.ini or in a .htaccess file to get PHP to help you.

  • Users who have thanked CFMaBiSmAd for this post:

    muchi_us (12-01-2008)

  • #7
    Regular Coder
    Join Date
    May 2008
    Location
    Lost in Localhost...
    Posts
    702
    Thanks
    3
    Thanked 43 Times in 42 Posts
    Quote Originally Posted by muchi_us View Post
    Well, I see this some times on other website, you only see the main url in the address bar and I think this is cool, because you don't see all the "ugly" page names.
    It sounds like that site uses frames for layout. So the URL stays the same. Which will load slow, and annoy visitors.

  • #8
    New Coder
    Join Date
    Sep 2002
    Location
    Las Vegas, NV, USA
    Posts
    34
    Thanks
    4
    Thanked 0 Times in 0 Posts
    Ok thank you guys, I did not know that this is something "bad"
    Markus

  • #9
    Regular Coder
    Join Date
    Sep 2008
    Location
    Oklahoma
    Posts
    249
    Thanks
    11
    Thanked 13 Times in 13 Posts
    you could use an iframe to load a different page but keep the url in the address bar the same

  • #10
    The Apostate Apostropartheid's Avatar
    Join Date
    Oct 2007
    Posts
    3,215
    Thanks
    16
    Thanked 265 Times in 263 Posts
    Frames aren't a good idea. Use an .htaccess file and the URL Rewrite engine to do it. But note that this is only supported on some server configs.

  • Users who have thanked Apostropartheid for this post:

    muchi_us (12-01-2008)

  • #11
    Master Coder
    Join Date
    Apr 2003
    Location
    in my house
    Posts
    5,211
    Thanks
    39
    Thanked 201 Times in 197 Posts
    You can do this with a 'mod rewrite' on the server using htaccess.

    It can be useful but often can frustrate the user who may have no other way of knowing what page they are on.

    bazz
    "The day you stop learning is the day you become obsolete"! - my late Dad.

    Why do some people say "I don't know for sure"? If they don't know for sure then, they don't know!
    Useful MySQL resource
    Useful MySQL link

  • Users who have thanked bazz for this post:

    muchi_us (12-01-2008)

  • #12
    Regular Coder
    Join Date
    Aug 2005
    Location
    MS
    Posts
    845
    Thanks
    11
    Thanked 79 Times in 77 Posts
    Quote Originally Posted by CFMaBiSmAd View Post
    The neat URL's are done by rewriting the URL on the server, not by hiding anything in the browser.
    This is the way it is done and one of the proper ways of doing it.
    ☠ ☠RON☠ ☠


  •  

    Posting Permissions

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