Web Servers General Talk - Removing the Suffix

This is Interesting: Free IT Magazines  
Home > Archive > Web Servers General Talk > January 2004 > Removing the Suffix





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Removing the Suffix
Zane

2004-01-19, 6:31 am

Hi,
Although I have been using Apache for a little while I have not really
had any "configuration" experiance with it and was wondering if anyone
can point me in the right direction.

Basically, we do not want the suffix showing in the address bar. The
reason being that due to various reasons we are using a number of
technologies jsp/php/html on a site. These are all being recoded to
jsp and xml which may take a little while. What we do not want is for
a user to bookmark /applet.php, and then not be able to get it again
because it is now /applet.jsp; if the url was just /applet then this
would cause no problems for them.

However, as we have never done this before is it possible and does it
cause alternative problems? Can apache do introspection, can it tell
the difference between php and jsp without a file type suffix. If this
is not possible with apache can other severs achieve this such as IIS,
Zeus etc?

Any help appreciated,

Zane
D. Stussy

2004-01-19, 6:31 am

On Wed, 22 Oct 2003, Zane wrote:
quote:

> Although I have been using Apache for a little while I have not really
> had any "configuration" experiance with it and was wondering if anyone
> can point me in the right direction.



See "Content negotiation." The examples usually talk about serving different
versions of a page for different languages, but I find that it works for not
showing a filename "suffix" (or "extension") that you describe below - if
implemented properly. This does mean that all your links will have to EXCLUDE
the "suffix" too.
quote:

> Basically, we do not want the suffix showing in the address bar. The
> reason being that due to various reasons we are using a number of
> technologies jsp/php/html on a site. These are all being recoded to
> jsp and xml which may take a little while. What we do not want is for
> a user to bookmark /applet.php, and then not be able to get it again
> because it is now /applet.jsp; if the url was just /applet then this
> would cause no problems for them.
>
> However, as we have never done this before is it possible and does it
> cause alternative problems? Can apache do introspection, can it tell
> the difference between php and jsp without a file type suffix. If this
> is not possible with apache can other severs achieve this such as IIS,
> Zeus etc?



There is one naming caveat: If you want to have a "menu.php" page that
includes an image called "menu.gif", accessing by just "menu" may serve the
image instead of the server-interpreted page. Watch your filenames.
Zane

2004-01-19, 6:31 am

Thanks for your help. I shall have a look at what you suggested

Zane


"D. Stussy" <kd6lvw@bde-arc.ampr.org> wrote in message news:<Pine.LNX.4.58.0310250819080.2334@kd6lvw.ampr.org>...
quote:

> On Wed, 22 Oct 2003, Zane wrote:
>
> See "Content negotiation." The examples usually talk about serving different
> versions of a page for different languages, but I find that it works for not
> showing a filename "suffix" (or "extension") that you describe below - if
> implemented properly. This does mean that all your links will have to EXCLUDE
> the "suffix" too.
>
>
> There is one naming caveat: If you want to have a "menu.php" page that
> includes an image called "menu.gif", accessing by just "menu" may serve the
> image instead of the server-interpreted page. Watch your filenames.


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com