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 ?
UberTec
05-14-2004, 06:16 AM
assuming you are using apache..
open your httpd.conf file
find this section and replace:
<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:
text/html html htm
then restart apache
Hello,
It's Linux server Linux 2.4.30-31,and apache web server 1.29,
thank you
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?
TS-Dave
05-14-2004, 07:32 AM
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!