Forums / Install & configuration / Image Download (3.3) needs changed Rewrite Rules?!

Image Download (3.3) needs changed Rewrite Rules?!

Author Message

Marco Zinn

Wednesday 24 December 2003 9:57:36 am

Yes, I was trying to find it in the docs, but i didn't.
I test-installed the 3.3 final with gallery image and have problem with the image downloading.
The Template creates Links like
[..]/content/download/347/1207/image/IMG_3580.jpg
or
[..]/content/download/346/1204/image/FUNCHAL2.JPG
While the second one worked, the first did not.

Debug: I installed using the "standard rewrite rules" for ez 3.x, which do NOT rewrite the common graphic formats (jpg,gif,png), because you will need them in the design of your site.
So, the first URL (*.jpg) does not get rewritten, but i guess the file does not physically exist at /content/download/.... So, it fails.
The second (*.JPG, uppercase letters!) gets rewritten to inde.php, processed by ez3 and starts the download.

That means: One must change the index.php rewrite rule or prepend one, that detects for (siteaccessname)/content/download

Is anyone familiar enought with rewrite rules? ;)
ez, please insert the Rewrite Rules to the install docs and take care of this... I didn't find it in the install part, just in the config/security corner: http://ez.no/developer/ez_publish_3/documentation/configuration/security/nonvirtualhost

Marco
http://www.hyperroad-design.com

Dominik Stoeppel

Tuesday 20 January 2004 2:51:46 am

hi marco,

have you found a solution for this ?

--

dominik

Marco Zinn

Tuesday 20 January 2004 8:34:25 am

No, I hoped, that ez would take care of it in the docs... but I don't see any info on the rewrite rules in the docs at all.

Now, from http://ez.no/developer/ez_publish_3/documentation/configuration/configuration/tips_tricks/exclude_uris_from_rewrite, I'd guess something like

RewriteRule ^/content/download/(.*)$ /<path-to-ez>/content/download/$1 [L]

This must be places before the "index.php"-rule and should take care of the URLs starting with /content/download/

If this works, some note would be good for everyone ;)

Marco
http://www.hyperroad-design.com