Monkeyman
03-12-2003, 05:43 PM
I'm currently working on a website hosted on an Apache server where I do not have access to the httpd.conf file. Using .htaccess, I have enabled MultiViews, but I now have a problem.
If I have a file /foo.php and a folder /foo/ and I request the URI /foo the server serves the folder /foo/. However, I want to have the file, /foo.php, served preferentially.
I am looking at using mod_rewrite to accomplish this. One added twist is that when /bar/ exists and /bar.* does not, I still want /bar to resolve to /bar/. As well, I would ideally like to have a solution where the extension of the file is non-specific -- i.e., /foo could find /foo.php while /bar could find /bar.pl and if I add files with new extensions (which could normally be picked with MultiViews) at a later date, no changes to the .htaccess file would be required. If this is not feasible, though, I can live with having to specify the extensions individually.
Any response appreciated.
Thanks,
Don Jackson
If I have a file /foo.php and a folder /foo/ and I request the URI /foo the server serves the folder /foo/. However, I want to have the file, /foo.php, served preferentially.
I am looking at using mod_rewrite to accomplish this. One added twist is that when /bar/ exists and /bar.* does not, I still want /bar to resolve to /bar/. As well, I would ideally like to have a solution where the extension of the file is non-specific -- i.e., /foo could find /foo.php while /bar could find /bar.pl and if I add files with new extensions (which could normally be picked with MultiViews) at a later date, no changes to the .htaccess file would be required. If this is not feasible, though, I can live with having to specify the extensions individually.
Any response appreciated.
Thanks,
Don Jackson