Forum Moderators: open

Message Too Old, No Replies

Linking to pages....

Link to extensions, or no?

         

andmunn

5:48 am on Jan 22, 2004 (gmt 0)

10+ Year Member



I have a quick question. I have about 10 key pages to link to on my site. Now, is it better to link to them like:

www.keyword.com/pagename.php

Or, perhaps put them in there own directory, and name each page "index.php", so it can be referanced like:

www.keyword.com/pagename (no extension).

What do you believe?

Cheers,
Andrew.

dcrombie

9:59 am on Jan 22, 2004 (gmt 0)



I prefer to have 10 files with different names in one directory instead of 10 files with identical names in different directories.

Maynard

1:47 pm on Jan 22, 2004 (gmt 0)

10+ Year Member



We prefer www.keyword.com/pagename because the URL looks cleaner.

dcrombie

2:24 pm on Jan 22, 2004 (gmt 0)



You can have the best of both worlds if you use mod_rewrite (or similar) so that /pagename.php can be linked to as /pagename

andmunn

4:06 pm on Jan 22, 2004 (gmt 0)

10+ Year Member



how exactly is this mod rewrite done?

robert adams

7:07 pm on Jan 22, 2004 (gmt 0)

10+ Year Member



If you don't do the rewrite thing, I don't think you will be able to link to just pagename. If you have a page named index or home or whatever your server has set up as default, you can link to the directory name and it will display that index or whatever page, but you can't just link to pagename and have it display.

robert

seankelly

8:26 pm on Jan 26, 2004 (gmt 0)

10+ Year Member



I agree with Robert, and would like to add
that it's easier to keep track of and manage your website when you don't have to always remember what pages are in each folder. So I would go with putting the .php files in one folder under different filenames, it's not as clean but much easier to manage when your site grows.

Hope this helps,
Sean Kelly,
CEO KellysBookShop.com
[KellysBookShop.com...]