Forum Moderators: phranque
The setup uses AddType and Action (in .htaccess) to map urls like "foo.htm" into "parser/parser.php?file=foo.htm"
Another part uses ServerAlias www.domain.com domain.com to ensure that the domain works with and without the www. This is done in httpd.conf.
Both are working separately, but they dont work together. In short, [domain.com...] serves index.htm without processing it.
index.htm is the first DirectoryIndex entry
Everything else appears OK.
I am now out of my depth! How can I get it working properly?
Thanks for your help.
Ian
www.mydomain.com/index.htm works properly
mydomain.com/index.htm works properly
www.mydomain.com/ works properly
mydomain.com/ fails to apply the action so it presents index.htm without procesing it.
"Works properly" means the file index.htm is processed by my php script and produces the expected output.
What is the correct way to get this working?
Thanks.
Ian
Welcome to WebmasterWorld!
I would suggest posting the relevant portion of your httpd.conf file (with your domain obscured, please) and/or posting this question in a PHP-related forum if you think it's a common installation problem (I don't know). We don't have a lot of traffic back here in the technical forums, so sometimes getting an answer takes a while...
Jim