Old 21-04-2008, 06:56   #1 (permalink)
=Adam=
Registered User
 
Join Date: Apr 2008
Posts: 2
Links to page names or folders?

Hi all,

Just thought I'd join up and get picking youir brains straight away!

I was just wondering how you guys approach this, when you link pages within your web sites, how do you do it? My past practice has been to link everything together by page file name such as:

website.com/news.htm

website.com/services.htm

But I've noticed that a lot of sites will just link to a directory, like this:

website.com/news

website.com/services

So would that mean that they are setting up a seperate folder for each section with an index page in each one? It seems a much tidier way of doing it, but I'm just wondering if there would be any impact by choosing this method.

I hope this makes sense...

Adam ~
  Reply With Quote
Old 21-04-2008, 07:26   #2 (permalink)
Bill Posters
trouble free and loverlee
 
Join Date: Mar 2003
Location: YooKay
Posts: 2,854
They could be creating directories for each section, with an index/default file which is automatically and invisibly used by the server.

- or -

They could be using mod_rewrite or a similar, server-side mechanism which takes the 'directory' and automatically and invisibly sends a rewritten version of the url to the server.

e.g.

website.com/news -> website.com/index.php?section=news
  Reply With Quote
Old 21-04-2008, 10:41   #3 (permalink)
haku
shiro
 
haku's Avatar
 
Join Date: Aug 2007
Location: Yokohama, Japan
Posts: 1,306
And for a third option, they could be using the .htaccess file, and writing a command in it so that a file other than one named index is showed when no filename is added after the directory.
  Reply With Quote
Old 21-04-2008, 10:42   #4 (permalink)
wheedwacker
competitionmaster 2.0
 
wheedwacker's Avatar
 
Join Date: Oct 2006
Location: USA
Posts: 977
For most for most sites it is mod_rewrite, occasionally what haku said.
__________________
Koloration design & development
  Reply With Quote
Old 24-04-2008, 06:11   #5 (permalink)
=Adam=
Registered User
 
Join Date: Apr 2008
Posts: 2
Thanks for the answers. Is there a windows based solution that achieves the same results as mod_rewrite?
  Reply With Quote
Old 24-04-2008, 09:36   #6 (permalink)
pgo
Moderator
 
pgo's Avatar
 
Join Date: Jan 2005
Location: Brooklyn, NYC
Posts: 11,869
Uh...you can use Apache on Windows...

If you mean an IIS solution, yes, there is, but I'd rather shove hot pokers in my eye than use IIS again.
__________________
  Reply With Quote
Old 24-04-2008, 17:59   #7 (permalink)
7am
Resident Slacker
 
7am's Avatar
 
Join Date: Sep 2006
Posts: 26
Content Management Systems like ExpressionEngine can automatically make clean urls for you and still let you use straight html.

But I have to ask why you are using IIS? Have you checked out WAMP?

-Lee
  Reply With Quote
Old 24-04-2008, 21:43   #8 (permalink)
haku
shiro
 
haku's Avatar
 
Join Date: Aug 2007
Location: Yokohama, Japan
Posts: 1,306
Interestingly enough, that last post by 7am was posted at 6:59am (my time).
__________________
This is not a signature.
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8