Forum Moderators: phranque
I am facing the problem.
i am generating .html file dynamically. problem is that when i am access the file www.domain.com it not showing, but when i am accessing with www.domain.com/index.html then i will work. Once the index.html is generated then www.domain.com will also work. But again when i remove the index.html is not showing.
Please help me.
Prabhat Kumar
System Administrator.
Have a read through the Apache mod_dir [httpd.apache.org] module page. It is a short read. Also, pay specific attention to the DirectoryIndex [httpd.apache.org] configuration directive. I think you'll find your answer.
#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
# The index.html.var file (a type-map) is used to deliver content-
# negotiated documents. The MultiViews Option can be used for the
# same purpose, but it is much slower.
#
DirectoryIndex index.html index.html.var
#
# AccessFileName: The name of the file to look for in each directory
# for additional configuration directives. See also the AllowOverride
# directive.
#
AccessFileName .htaccess
#
# The following lines prevent .htaccess and .htpasswd files from being
# viewed by Web clients.
#
<Files ~ "^\.ht">
Order allow,deny
Deny from all
</Files>
*/
hope so this is correct
It is likely that this code currently requires an extension of ".html" on the requested URL, and does not recognize a request for "/".
For example, something like
RewriteRule \.html$ /page_generation_script.php [L]
RewriteRule (\.html$¦^$) /page_generation_script.php [L]
Jim