Forum

RewriteRule for Hiawatha

Alex
1 February 2010, 17:22
How would that look to Hiawatha?

RewriteRule ^(.*)\.jpg /watermark.php?%{REQUEST_FILENAME}


Hiawatha version:
Operating System:
Hugo Leisink
1 February 2010, 21:07
UrlToolkit {
...
Match (^/.*\.jpg) /watermark.php?$1
}

watermark.php should be adjusted, because the parameter not contains the full path, but only the file within the website root.
Alex
2 February 2010, 02:44
Starting webserver: Syntax error in hiawatha.conf on line 81.
Hugo Leisink
2 February 2010, 08:43
Oh, oops. Use this one
UrlToolkit {
...
Match (^/.*\.jpg) Rewrite /watermark.php?$1
}


P.S.
If you read the manual page or HOWTO, you would have been able to tell what's wrong yourself...
This topic has been closed.