Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Handle a file without extension

Discussion in 'General Discussion' started by dpozitif, Aug 9, 2008.

  1. dpozitif

    dpozitif Member

    Joined:
    May 25, 2006
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    151
  2. sachink

    sachink Member

    Joined:
    Oct 15, 2006
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    151
    Hello,

    Just add following code in .htacess

    RewriteEngine On RewriteCond %{REQUESTFILENAME} !-f RewriteCond %{REQUESTFILENAME} !-d RewriteRule ^(.*)$ $1.html [L,QSA]

    Thank You,
    Sachink
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice