www.webdeveloper.com
Results 1 to 3 of 3

Thread: How to avert .html in URL

  1. #1
    Join Date
    Apr 2010
    Posts
    1

    How to avert .html in URL

    I have always used .html at the end of my URL otherwise the page will not load. But I have seen many sites that do not use it but still the page loads. How does this work?

  2. #2
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    21,654
    In the Apache .htaccess file
    Code:
    <FilesMatch .*>
       Options +MultiViews
    </FilesMatch>
    http://www.websiteoptimization.com/speed/tweak/rewrite/
    At least 98% of internet users' DNA is identical to that of chimpanzees

  3. #3
    Join Date
    Dec 2007
    Location
    Mississippi
    Posts
    1,063
    Quote Originally Posted by Fang View Post
    In the Apache .htaccess file
    Code:
    <FilesMatch .*>
       Options +MultiViews
    </FilesMatch>
    http://www.websiteoptimization.com/speed/tweak/rewrite/
    Wow, I've been doing it the long way

    Code:
    RewriteRule ^(index|contact|terms)$ /$1\.php
    Last edited by Joseph Witchard; 04-03-2010 at 01:00 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles