Hide file extension

How would I set my file extensions to be hidden?
Instead of www.example.com/home.html the URL would be
www.example.com/home ?
Thanks in advance,
M

.oO(Walt F. Schaefer)
>Depends on which end you're on. If you type
http://www.example.com/home
into
>your browser address bar it will take you to the target
page. But when you
>get there the address will read
http://www.example.com/home/.
I presumed the
>OP was concerned about what the visitor had to type
rather than what they
>would see. Perhaps I was wrong.
You were right, but there's one thing many authors are not
aware of.
Technically the above are two completely _different_ URLs.
Most servers
are by default configured to automatically add the trailing
slash if the
URL looks like the first one and points to a directory on the
server.
But this causes a 301 redirect, which means that the browser
has to send
a second request with the correct URL.
Every additional HTTP request means more network traffic and
- even more
important - a slower download. The first URL will always take
longer to
download than the second one. In the best case the users
won't notice,
but on high-traffic sites or in a congested network this can
become an
issue. Speed matters.
Also see:
Avoid Redirects
http://developer.yahoo.com/performance/rules.html#redirects
Micha

Similar Messages

  • How to Hide File Extensions in URL

    Hello Again!
    I've tried to edit my .htaccess file to hide file extensions in my URL, but nothing I try works. I get "Page Not Found" when I try to remove the .html from my pages. Here is the code I have used:
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME}\.html !-f
    RewriteRule ^{.*}$ $1.html
    I've also used
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^{.*}$ $1.html [L,QSA]
    Neither worked.
    Any thoughts would be helpful! Thanks!
    K

    When you save the document there is a check box in the save window that gives you the option to hide the extension. I've checked this for both Pages & Word. I can't be certain that all applications give this option.
    You can of course delete the extension name from individual files already on your computer by selecting the file name as if editing the name and just deleting the extension part of the name.
    Neville

  • Is there a quicker way to hide file extensions on multiple files.

    So, there's the real filename (visible in Terminal) and then the displayed name in Finder and some other applications such as Front Row. Well, I'm using Front Row and I would like my AVI files to display just the name of the movie - not the full filename.
    OS X allows me to change each file individually to hide the extension (either by renaming it in Finder or by checking 'hide extension' in the file's info box) and also allow the whole curtain to be pulled back via a setting in Finder's preferences. But there doesn't seem to be a way to hide the extensions of a particular bunch of files en masse.
    What I would like to know is: Is there a quicker way to do this for all my AVI files? There doesn't seem to be an Automator task that will change file properties (other than permissions). Is there a way I could do it at the command line perhaps? I'm fairly handy with Unix shell scripts and Perl - I'm just relatively new to OS X, that's all.

    The basic mechanism is to select all the files you wish to change then hold down the OPTION key and select Show Inspector from the Finder's File menu. Check the box to hide extension. This will set the preference for all selected files.
    If your files are scattered all over the place, then use the Finder's Find function to find all files with the extension attribute you want, then save the result as a Smart Folder. Then select all files in the Smart Folder you created and do the above.

  • Hide file extension from display in the iview

    Hello my friends,
    I display KM folder content in an iView in my portal. I want to hide the files extension but I just cann't find out how to do it.
    Thanks in advance,
    Udi Dekel.

    Hi Udi,
    There is no such standard feature, but at least one possible workarounds:
    - You may use a display name like "MyDocument" and the ID will be "MyDocument.doc" or whatever. The standard ResourceRenderer render the display name (with the ID as a tooltip)
    A "solution" for all cases where the display name has got the file extension in its name would be to write your own property renderer for the display names, which then checks if there is a file extension, and if, then cut this off.
    Hope it helps
    Detlev

  • Hide file extension by type (user-wide)

    Is there a way to have Finder hide all file extensions of a particular type? (For example, if I wanted Finder to hide the *.svg suffix from all SVG files?)
    I'm only interested in having this apply to one user, not necessarily system-wide, if that matters.
    Lastly, if there is no built-in mechanism for this, could it be accomplished using some combo of AppleScript, Automator, and/or Folder Actions?
    Thanks.

    You can change individual file attributes, such as showing the file extension with "A Better Finder Attribute" from http://www.publicspace.net/ABetterFinderAttributes/index.html
    I have used this program to mask all the file extensions for over 20,000 files that I transferred to my iMac from my old PC.

  • Cannot hide files extensions

    Hello,
    After last update I noticed that near my files extensions has appeared. I tried to hide them, but when I want to click on tick near file name extension(Folder -> View) nothing happens. After that I tried to change register: 
    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
    "HideFileExt"=dword:00000001
    I got information that I cannot change HideFileExt.
    What I suppose to do?
    Thanks for respond.

    After that I tried to change register: 
    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
    "HideFileExt"=dword:00000001
    I got information that I cannot change HideFileExt.
    Hi,
    What information did you get? Permission issue such as "Access denied"? If so, please right click the "Advanced"\Permissions, then give youself full control permission, if you don't have permission to do this, please take ownership of
    the key, then add yourself to the security group, give full control permission, then change the value of "HideFileExt", click F5 to refresh the registry.
    (Pleaes make sure to first backup the registry before making any changes on registry )
    http://technet.microsoft.com/en-us/library/cc755091.aspx
    Yolanda Zhu
    TechNet Community Support

  • How can you hide file extensions?

    Hello i have a ton of pictures in seperate folders with the extensions .JPEG and i really hate that it shows. I have tried going to the finder and unchecking the show all file extensions, but it does not fix that issue. I also saw this in another topic but i haven't been able to understand it.
    Open the Script Editor in the /Applications/AppleScript/ folder and paste in the following:
    tell application "Finder"
    set extension hidden of every file of entire contents of (selection as alias) to true
    end tell
    Select the folder enclosing the documents in the Finder, and press the Run button in the Script Editor. If they are enclosed by multiple folders or are at different levels in the folder structure, select the first folder which encloses all the documents.
    (22397)
    I don't know if it still works. Im also not sure where i put the folder. I have tried programs but they take away the extension and make the picture not open up then.
    Please if you can help

    yes i found it, but this is how i enter it i dont think its right:
    tell application "Finder"
    set extension hidden of every file of entire contents of (selection as alias) to true
    end tell
    /Users....
    then i get Syntax error "/"

  • How to hide file extension on finders symbolic view?

    When I switch the finder's view to symbolic the files view turns to an icon or minimized first page of the file's content. In some cases the file extension is displayed at the bottom of this symbol. E.g. files of type PDF always show the 3 letters PDF at the bottom of the small preview image. Files of type PKG don't show it.
    Is there a way to change this behaviour? Changing it in the finder's prefrences only affects hiding or showing the file extension in list view.
    Thanks for any advice!

    I tried it and it didn't look like it took effect. I switched folders and cam back to the first one I looked at and the extensions were showing.
    It may just need time to redraw the view.

  • I received an email containing a spreadsheet created using Mac Office 2004 on my new MacBook Air equipped with Mac Office 2011.  When I saved the document, my Finder lists the document without the .xls file extension. Why?

    I received an email containing a spreadsheet created using Mac Office 2004 on my new MacBook Air equipped with Mac Office 2011.  When I saved the document, my Finder lists the document without the .xls file extension. Why?
    All other .xls documents created by Mac Office 2004 retained the .xls file extention when I migrated them over to the new MacBook Air.

    I know what happened.  When I saved the document I somehow hit the Hide File Extension box.  Sorry to trouble this group. I simply resaved it w/o activating the Hide File Extension feature.

  • FileReference.save() loses file extension on Windows

    Hi all,
    I've run into an issue that I'm hoping someone has a workaround for. I'm using FileReference.save in a few places in my project. We ran into a bug today where the save operation loses the file extension under certain conditions. Those conditions are:
    The user is running on Windows and has hide file extensions turned on (the default)
    The user modifies the file name before saving.
    If the user has file extensions turned on or just saves without modifying the file name everything works fine.
    Does anyone know a workaround or fix for this problem?
    Thanks in advance!

    sorry Codeflayer, there's no way round it as far as i know (and ive tried, believe me)
    and its a feature, not a bug

  • How can I hide the extension in multiple pdf files?

    I make a lot of PDF files and would like to know if there is a way to hide the extensions without using the 'Finder - Preferences - Advanced'  tick box method. It is very time-consuming doing this for every file.

    Thanks for the speedy replies.
    The 'show extensions' box was not being ticked between uses.
    I make PDFs with several applications. I did not know that extensions could be hidden at source. Now I can do that with some applications, but not all, thanks to VikingOSX.
    The number of extensions to hide is now reduced and I will do this with one action, thanks to Linc Davis. (Why did I not think to try this key combination?)

  • Is there a way to hide ALL file extensions?

    Hi
    I am looking for a way to get OS X to hide ALL file extensions on the entire computer. I don't know why, but they really annoy me! I liked OS 9 and earlier because they didn't have them, and including them in OS X seems like a step backward to me. Wherever I can I simply don't save with file extensions (MS Office still retains this ability), and most applications will still open their files if you delete the file extension, but I do have a number of applications that require a file extension (such as OmniGraffle Pro), and it is very laborious to have to go through every file in order to hide the file extension. Is there some kind of master setting that you can apply to a volume in order to hide every file extension in it?

    Hi All,
    I have found this tutorial that partially solves the problem. http://www.youtube.com/watch?v=_NhRFxJCAQw
    It is a quick way to hide the extensions of all files that have them in a given folder and the folders inside it, using automator. It does not hide the extensions of any file you add to the folder subsequently, and you can not apply it to a volume or a home folder. It is more of a labour-saving tool than an actual solution, but it is vastly better than having to get info for every single file.
    As the author of the tutorial notes in his video, this is an option that apple could fix by just adding one more check-box to the finder preferences window. Or better still they could have just left things the way they were before and not introduced them in the first place... does anyone even know what they are for anyway? (Apart from to annoy you with a random bit of text at the end of a filename that you didn't place there.)

  • Keynote hides .key file extension on save - feature or bug?

    I haven't been able to track anything down about this in the forum...
    I've created a new file in Keynote '09, and saved it with the standard .key extension. When I open the file, edit it, and "save" it, Keynote hides the extension. If I go to the file in the Finder, select it and show info, and un-check "hide extension", the .key reappears as expected. But the next time I save it in Keynote, Keynote hides the extension again.
    I know that the new file format is really a .zip file, so that's why I'm wondering if this is supposed to be a feature even though it seems like a bug.
    Anyone have any insight on this?

    I've seen this in the past... someone else has posted it before and I tried the same thing. I think it IS a bug, so you should report it here.
    http://www.apple.com/feedback/keynote.html

  • Hide all file extensions

    Is there any way (without having to run scripts) to hide all file extensions by default? I am aware of the 'show all filename extensions' option in Finder's preferences, and how it only force shows all the extensions that have been turned off individually (file -> get info -> hide extension), however, I am looking for a 'force hide' option. Even on a per file type basis. Why isn't this in the finder preferences?
    Cheers.

    Google search for *"hide all file extensions"* yields many hits, including this one http://forums.macosxhints.com/showthread.php?t=58607 which has a simple two-line AppleScript that does the job.
    As to why it isn't in the Finder's prefs, ask Apple. You can do that by either sending Feedback or sending bug reports and enhancement requests to Apple via its Bug Reporter system. To do the latter, join the Apple Developer Connection (ADC)—it's free and available for all Mac users and gets you a look at some development software. If you already have an Apple username/ID, use that. Once a member, go to Apple BugReporter and file your bug report/enhancement request. You'll get a get a Bug/ER ID number; thus, starting a dialog directly with engineering.

  • Quicktime no longer exporting my movies with file extensions

    Hi all, QT is no longer exporting or saving movies with file extensions. The only way i can view extensions is to turn on all extensions in finder which means i get .app in my apps folder which i find looks naff, have i changed something to cause this?
    Cheers

    In the export or save dialog windows is a check box to "hide" the file extension.
    Remove that check mark.

Maybe you are looking for

  • Does iCloud photo Library just duplicates my iCloud photos Backup? or uses the same copy?

    Hi, So i want to enable both iCloud backup AND Photo Library. But, i was wondering, how will it be held? After turning on the iCloud Photo Library, will the photos in the Backup get deleted? or it uses them and share them between the two services? Or

  • Photo albums in front row help

    Hi, I am having trouble getting my photo albums to play via front row. I have numerous albums but when i go into them in front row, it just shows up random photos from the album and roll they came from, with none of the album pages showing. The photo

  • My iphone doesn't sleep. Screen always light up.

    I have already set the auto-lock delay timing 1 min but my iphone still not be in sleep mode. What should i do with it?

  • Oracle 8i Lite for CE

    Does Oracle 8i Lite for CE run on the Jornada 720. This handheld is using the StrongARM SA1110 processor. The core system version is 3.0.

  • Cs4.. nook export for epub skipping pages.

    I have a book .indb file. Has 335 chapters in it. But each page is small. If I try to export a file for digital editions it skipps pages at after a certain page.  I checked out which page was the last processed. Then checked the other pages out all a