Reinstall Printer Driver

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Thursday, December 13, 2012

Hiding file extension in web browser via .htaccess

Posted on 7:11 PM by Unknown
I want to hide (remove) the file extension  (shtml) in my web page. The website is hosted in an apache server running a linux operating system.

I have tried various codes (found in google search: removing file extension) written in .htaccess files, but give me no luck. 

After keep on trying and modifying codes from several sources, finally I can get what I want:
domain/foo.shtml will be appeared as domain/foo
and if I type
domain/foo it opens the shtml page correctly and appeared as domain/foo
Basically the *.shtml will never appeared in the web browser address bar.

The codes written in .htaccess are the following:

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.shtml -f
RewriteRule ^(.*)$ $1.shtml
RewriteCond %{THE_REQUEST} ^GET\s.+\.shtml
RewriteRule ^(.+)\.shtml$ /$1 [R=301,L]

The codes are implemented in the new Impact website. Note in IE9, some pages are greyed-out because lightbox.js does not work correctly.

Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Posted in Apache, htaccess | No comments
Newer Post Older Post Home

0 comments:

Post a Comment

Subscribe to: Post Comments (Atom)

Popular Posts

  • Lenovo IdeaPad Z510 Driver Windows 8
    Download drivers Lenovo IdeaPad Z510 Notebook for Windows 8.1 64-bit Intel Chipset  Driver Version : 9.4.0.1027  Download Realtek Audio Driv...
  • Dell Inspiron N7110 Drivers Windows 7 64 bit
    Download drivers Inspiron N7110 for Windows 7 64 bit Intel Cougar Point chipset Driver Intel Huron River (HM67) Version:9.2.0.1015, A00  Do...
  • Installation Fortran Java and C++ in Netbeans IDE
    The following steps will guide you to install free GNU Fortran (gfortran), C/C++ (g++) and Java (oracle) in Netbeans in Windows7. There are ...
  • Alienware M17X R3 Drivers Windows 7 64-bit
    Alienware M17X R3 Drivers Download for Windows 7 64-bit   Alienware M17X R3 has some general specifications : Operating system Windows 7 Ult...
  • Fujitsu LifeBook E780 Drivers Windows 7 32-bit
    Fujitsu LifeBook E780 Drivers Download for Windows 7 32-bit Technical Specifications of FUJITSU LIFEBOOK E780 Processor    Make     Intel P...
  • Samsung ML-2951NDR Drivers Download
    Download Samsung ML-2951NDR Printer drivers Compatibility and system requirements : Windows 8 (x86,x64) Windows 7 (x86,x64) WIndows Vista (x...
  • HP Photosmart C4580 Drivers Download
    Download Driver Printer HP Photosmart C4580 Compatibility and System Requirements : Windows 8 Windows 8 (x64) Windows 7 Windows 7 (x64) Wind...
  • HP Deskjet F4172 Drivers Download
    Download HP Deskjet F4172 Printer drivers Compatibility and system requirements : - Windows 8 - Windows 7 - WIndows Vista - Windows XP all d...
  • Preparing Springer article manuscript in LyX (Windows)
    For most journals in Springer, the global  manuscript submision LaTeX class is svjour3 . The following is the preparation steps in Windows (...
  • Fujitsu LifeBook E752 Drivers Windows 7 64-bit
    Download Fujitsu LifeBook E752 Drivers  for Windows 7 64-bit Quick Specifications Processor Intel Core i5 i5-3210M / 2.5 GHz ( 3.1 GHz ) ( ...

Categories

  • 12.04
  • Acer
  • Acer One Happy
  • acpiphp
  • Apache
  • application launcher
  • Asus
  • C/C++
  • CALFEM
  • Canon MG2270 Ubuntu
  • Card reader
  • Dell
  • Driver Printer Brother
  • Driver Printer Canon
  • Driver Printer Epson
  • Driver Printer HP
  • Driver Printer Samsung
  • Driver Printer Xerox
  • Fortran
  • FreeMat
  • fujitsu
  • GetDeb
  • gnome-panel
  • HP Compaq
  • htaccess
  • Inkscape
  • Java
  • LaTeX Formula
  • Lenovo
  • LyX
  • LyX update
  • mono
  • MSI
  • mysql
  • Netbeans
  • Open Conference System
  • Printer Scanner Canon Ubuntu
  • Remove shortcut icon
  • Reseter Printer
  • Samsung
  • Scaner
  • SMath
  • Sony
  • Springer article
  • Springer LaTeX
  • svjour3
  • Toshiba
  • Unity

Blog Archive

  • ►  2013 (503)
    • ►  November (2)
    • ►  October (34)
    • ►  September (26)
    • ►  August (23)
    • ►  July (38)
    • ►  June (67)
    • ►  May (53)
    • ►  April (106)
    • ►  March (154)
  • ▼  2012 (5)
    • ▼  December (1)
      • Hiding file extension in web browser via .htaccess
    • ►  November (1)
    • ►  June (1)
    • ►  February (1)
    • ►  January (1)
  • ►  2011 (4)
    • ►  December (4)
Powered by Blogger.

About Me

Unknown
View my complete profile