...

View Full Version : Hide page name in browser



mysterybks
07-19-2007, 04:26 PM
Is there an easy way to hide page names in browsers?

Dawn

VIPStephan
07-19-2007, 04:47 PM
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?

mysterybks
07-19-2007, 04:48 PM
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

daemonkin
07-19-2007, 05:07 PM
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?

mysterybks
07-19-2007, 05:11 PM
No. Sorry. I use CSS and HTML. I don't use PHP.

abduraooft
07-19-2007, 05:14 PM
Try How to Succeed With URLs (http://www.alistapart.com/articles/succeed) from ALA, which may help

ahallicks
07-19-2007, 05:42 PM
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.

daemonkin
07-19-2007, 05:49 PM
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:

<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.

mysterybks
07-19-2007, 05:59 PM
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?

felgall
07-19-2007, 11:34 PM
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.

VIPStephan
07-20-2007, 12:10 AM
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 (http://en.wikipedia.org/wiki/Rewrite_engine) in the .htaccess file (depends on server support).
CMSmadesimple (http://cmsmadesimple.org) has the option to use pretty urls where you can but don’t have to put a file extension.

ahallicks
07-20-2007, 11:55 AM
This secret method is called search engine friendly URLs (or also pretty URLs) and is most likely done with mod_rewrite (http://en.wikipedia.org/wiki/Rewrite_engine) in the .htaccess file (depends on server support).
CMSmadesimple (http://cmsmadesimple.org) 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 (http://www.webmasterworld.com/apache/3371997.htm) if you could explain any of that to me it'd be very much appreciated!



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum