index.html renaming in Apache
Can anyone tell me if instead of having index.html as an index file if I could have
Welcome to my company in Fredericton, New Brunswick.htm As the index file. How would i do it. I tryed this but it didn't work. <VirtualHost *> ServerName hometectest.com DocumentRoot /var/www/mycompany DirectoryIndex Welcome to my company in Fredericton, New Brunswick.htm </VirtualHost> |
Yes - Just change:
DirectoryIndex Welcome to my company in Fredericton, New Brunswick.htm to: DirectoryIndex "Welcome to my company in Fredericton, New Brunswick.htm" Spaces in a DirectoryIndex directive denote separate files. |
another idea:
ln -s "Welcome to my company in Fredericton, New Brunswick.htm" index.html just creates a symbolic link to the file |
All times are GMT -5. The time now is 11:54 AM. |