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
    Feb 2007
    Posts
    90
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Hide page name in browser

    Is there an easy way to hide page names in browsers?

    Dawn

  • #2
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,677
    Thanks
    6
    Thanked 1,008 Times in 981 Posts
    Define “page name in browser”.

    The page title? The page URL?
    Where in the browser? The viewport? The address bar? The status bar?

    Any reason why you wanna do what you wanna do?

  • #3
    New Coder
    Join Date
    Feb 2007
    Posts
    90
    Thanks
    1
    Thanked 0 Times in 0 Posts
    The actual name of the page (index.html).

    Why? I think it looks cleaner when it just has the website name and I've seen it done. Want to know how.

    Dawn

  • #4
    Regular Coder
    Join Date
    Jun 2007
    Location
    N. Ireland
    Posts
    351
    Thanks
    16
    Thanked 4 Times in 4 Posts
    I set up my files in sub directories - /about/ /gallery/ etc

    In these directories I place an index file (usually .php) that my server knows to show when anyone browses to the directory.

    Does this help?
    Daemonkin.
    If this was helpful, please add to my reputation
    Thousand Sons - Freelance Web Developer - ninetyonedegrees.com

  • #5
    New Coder
    Join Date
    Feb 2007
    Posts
    90
    Thanks
    1
    Thanked 0 Times in 0 Posts
    No. Sorry. I use CSS and HTML. I don't use PHP.

  • #6
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,855
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    Try How to Succeed With URLs from ALA, which may help
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #7
    Senior Coder ahallicks's Avatar
    Join Date
    May 2006
    Location
    Lancaster, UK
    Posts
    1,134
    Thanks
    1
    Thanked 57 Times in 55 Posts
    A List Apart is actually a good example of something I've been wondering on the subject of URL's because their pages do not actually have file extensions for the pages, which I'm thinking is because of the CMS they're using? I've always wondered how to do this myself and think the next stage for me is to look into using CMS's etc.
    "write it for FireFox then hack it for IE."
    Quote Originally Posted by Mhtml View Post
    Domains are like women - all the good ones are taken unless you want one from some foreign country.
    Reputation is your friend

    Development & SEO Tools

  • #8
    Regular Coder
    Join Date
    Jun 2007
    Location
    N. Ireland
    Posts
    351
    Thanks
    16
    Thanked 4 Times in 4 Posts
    Quote Originally Posted by mysterybks View Post
    No. Sorry. I use CSS and HTML. I don't use PHP.
    The same can be done with .html/.htm

    Create a directory - /about_us/
    Place an html file in the directory and call it index

    link to the following:
    Code:
    <a href="/about_us/">About Us</a>
    and volia you shoul link to the index.html file and see the /about_us/ in your browser.

    You may be able to configure your server to look for other files to serve if it cannot find an index file.

    D.
    Daemonkin.
    If this was helpful, please add to my reputation
    Thousand Sons - Freelance Web Developer - ninetyonedegrees.com

  • #9
    New Coder
    Join Date
    Feb 2007
    Posts
    90
    Thanks
    1
    Thanked 0 Times in 0 Posts
    So I can't do anything in html and css to make www.mysteryloverscorner.com/index.htm be just www.mysteryloverscorner.com in the browser address window?

    When I've seen this done they must be using php or asp? Correct?

    Unfortunately I can't use asp how mine is currently configured. I'm already wishing I could as I want to switch over and use an Access database to populate my pages instead of having to create each page (have over 500 pages now), but I don't want to mess up the bookmarks people have since they currently all the full page name. I thought if I could find a way to streamline it so all bookmarks would just show www.mysteryloverscorner.com then I could change to asp. But then I guess another question would be if I made it so all pages showed www.mysteryloverscorner.com and no page name attached, would that mean all bookmarks would just go to the home page?

  • #10
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,640
    Thanks
    0
    Thanked 649 Times in 639 Posts
    Make the filename for each page of your site "index.html" and place each in a different folder on the site. You can then refer to the pages using the folder name rather than the filename. No HTML, CSS, or server side processing required, just a nmatter of what name you give each file and where you put 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.

  • #11
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,677
    Thanks
    6
    Thanked 1,008 Times in 981 Posts
    Quote Originally Posted by ahallicks View Post
    A List Apart is actually a good example of something I've been wondering on the subject of URL's because their pages do not actually have file extensions for the pages, which I'm thinking is because of the CMS they're using? I've always wondered how to do this myself and think the next stage for me is to look into using CMS's etc.
    This secret method is called search engine friendly URLs (or also pretty URLs) and is most likely done with mod_rewrite in the .htaccess file (depends on server support).
    CMSmadesimple has the option to use pretty urls where you can but don’t have to put a file extension.

  • #12
    Senior Coder ahallicks's Avatar
    Join Date
    May 2006
    Location
    Lancaster, UK
    Posts
    1,134
    Thanks
    1
    Thanked 57 Times in 55 Posts
    Quote Originally Posted by VIPStephan View Post
    This secret method is called search engine friendly URLs (or also pretty URLs) and is most likely done with mod_rewrite in the .htaccess file (depends on server support).
    CMSmadesimple has the option to use pretty urls where you can but don’t have to put a file extension.
    Hey Stephan, thanks for the heads up. Read that article, some interesting stuff. I've now got to a point where I'm trying to get a mod rewrite to work so that when I just type in the file without an extension it recognises the corresponding .php file and displays it in the address bar. However, as of yet the mod rewrite does not appear to be working?

    Do you know any tutorials out there that may be able to help? I've been looking for some but as of yet the only thing I found was a complicated thread in a forum that I didn't understand saying that someone else had loads of trouble finding out about rewrites!

    The forum is here if you could explain any of that to me it'd be very much appreciated!
    "write it for FireFox then hack it for IE."
    Quote Originally Posted by Mhtml View Post
    Domains are like women - all the good ones are taken unless you want one from some foreign country.
    Reputation is your friend

    Development & SEO Tools


  •  

    Posting Permissions

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