Bluehost.com Web Hosting $6.95

User friendly URLs; masking the "file extension"

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


Go Back   Usenet Forums > Web Server and Related Forums > Windows Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-23-2006
Spartanicus
 
Posts: n/a
Default User friendly URLs; masking the "file extension"

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
  #2 (permalink)  
Old 10-24-2006
Andreas Prilop
 
Posts: n/a
Default Re: User friendly URLs; masking the "file extension"

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

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 01:05 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0