This is a discussion on User friendly URLs; masking the "file extension" within the Windows Web Servers forums, part of the Web Server and Related Forums category; As part of an exercise to make URL's more user friendly I am wondering about the best way to ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
As part of an exercise to make URL's more user friendly I am wondering
about the best way to remove the "file extension" from the displayed URL. I want to be able to use <http://host.invalid/resource> type URL's whilst the actual resource is named <http://host.invalid/resource.htm>. Clicking the first example URL should produce <http://host.invalid/resource> in the address bar, not redirect to <http://host.invalid/resource.htm>. I develop on Windows and upload to a Linux server, I upload a mirror of my dev directory, I want to retain the ".htm" end of the file name (file extension on Windows). I've read that this can be done using Multiviews/Content negotiation, I'm wondering if this is the best way from a performance and setup & maintenance perspective. If so, does anyone have an example of how to do this? -- Spartanicus |
|
|||
|
On Mon, 23 Oct 2006, Spartanicus wrote:
> As part of an exercise to make URL's more user friendly I am wondering > about the best way to remove the "file extension" from the displayed > URL. In your .htaccess file: Options +Multiviews |