Image

Imagecpm wrote in Imageapache

Giving hints to MultiViews

Hi. I'm trying to get MultiViews and CGI handlers to behave a little better together.

I have .mml files being handled by a perl script in my /cgi-bin/. If I have foo.mml and foo.html in the document root and /foo is requested, I want the mml file to preferred over the html file.

I didn't see anything in the mod_negotiate documentation which seemed too helpful towards these ends, but you never know. Maybe I just missed it.

My current .htaccess file looks like:

Options +FollowSymLinks
Options +MultiViews

DirectoryIndex index.mml index.html index.php

AddType text/html .mml
AddHandler martml .mml
Action martml /cgi-bin/mml-ng-strict.cgi
DefaultType text/html

RewriteEngine on
RewriteRule ^projects/smb/(.*)\.(jpg|gif)$ http://astro.temple.edu/~meyers/smb/$1.$2 [R=302,L]
RewriteRule ^astro-images/(.*)$ http://astro.temple.edu/~meyers/images/$1 [R=302,L]

RewriteCond %{HTTP_HOST} !^www\.thechaz\.net
RewriteRule ^(.*)$ http://www.thechaz.net/$1 [R=permanent,L]