The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

HTML Extension hide query

Discussion in 'cPanel Developers' started by shaneg, Apr 18, 2009.

  1. shaneg

    shaneg Member

    Joined:
    Sep 11, 2007
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    I am using all HTML pages and want to hide the extension for all the pages..I have added this code in .HTACCESS file:

    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]

    So when I browse the web pages without HTML it will work but when I browse the page with .HTML extension it is also working...I want it to be redirect without extension page..how can I do that?

    Thanks,

    Shane G.
     
Loading...

Share This Page