Results 1 to 6 of 6
  1. #1
    Join Date
    Apr 2004
    Location
    India
    Posts
    292

    How to provide .htm support!!!

    Hello all,
    We have problem in running .htm script on server for our domain.What I want is that for our domain abc.com I want to run .htm files,currently it isn't possible.
    How do i do that only my domain abc.com will run .htm files in browser?
    any idea ?

  2. #2
    What OS, and webserver?
    Like us on Facebook to qualify for discounts!
    http://www.sprintserve.net
    Offering: | Internap FCP Bandwidth! | Rebootless Kernel Updates! | Magento Optimized Hosting | Wordpress Hosting |
    Services: | Managed Multiple Cores 64bit Servers | Server Management |

  3. #3
    assuming you are using apache..

    open your httpd.conf file

    find this section and replace:
    Code:
    <IfModule mod_dir.c>
        DirectoryIndex index.html index.htm index.php index.php4 index.php3
    </IfModule>
    now find your mime types file, probably /private/etc/httpd/mime.types

    find the line starting with text/html

    and it should look like:
    Code:
    text/html                       html htm
    then restart apache

  4. #4
    Join Date
    Apr 2004
    Location
    India
    Posts
    292
    Hello,
    It's Linux server Linux 2.4.30-31,and apache web server 1.29,
    thank you

  5. #5
    Join Date
    Apr 2004
    Location
    India
    Posts
    292
    Hello all,
    Is that code applicable to all websites on server or to only abc.com?
    I want .htm to be run on only abc.com and not for other sites..
    is that possible?

  6. #6
    I'm a little confused; Are you trying to execute code (perl or php) in your .htm? Or are you simply looking for a way to make www.abc.com/ load yourfile.htm?

    If the latter is the case, a simple .htaccess file modification will work peachy:

    #.htaccess
    #put this in your /home/username/public_html/ or other web directory
    DirectoryIndex yourfile.htm


    That's It!
    <<< Please see Forum Guidelines for signature setup. >>>

Posting Permissions

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