My ISP has IIS 6 and has been impossible to install anything to handle rewriting, so no Clear URLs.
Workaround: since 404 errors are handled by a error404.asp file in document root, I have managed to redirect 404s to suit imagecache's (and perhaps others') needs. It gets an URL like:
http://www.catalanadetelescopios.com/d5/files/imagecache/product_list/files/watec120nplus.jpg
which produces an 404 error, and converts it to:
http://www.catalanadetelescopios.com/d5/index.php?q=files/imagecache/product_list/files/watec120nplus.jpg
(my installation is in '/d5/' folder)
This is my error404.asp file contents:

<%
	Response.Expires=0
	strQString=Request.ServerVariables("QUERY_STRING")
	If (Instr(strQString,"/d5/")) Then
		Id=Right(strQString,Instr(strQString,"/d5/"))
		Response.Redirect("/d5/index.php?q=" & Id)
	End If
	Response.Redirect("index.htm")
%>

Result: imagecache working without ClearUrls ;-)

Regards from Barcelona (Spain).

Jordi.

Comments

jsese’s picture

Ups, sorry I inserted the wrong code (I did not check whether I pasted the one it worked...).
The correct one is this:

<%
	Response.Expires=0
	strQString=Request.ServerVariables("QUERY_STRING")
	If (InStr(strQString,"/d5/")) Then
		pos=Instr(strQString,"/d5/")+3
		Id=Right(strQString,Len(strQString)-pos)
		Response.Redirect("/d5/index.php?q=" & Id)
	End If
	Response.Redirect("index.htm")
%>

Sorry for any inconvenience,

Regards.
Jordi.

dopry’s picture

Status: Active » Fixed

Jordi, you're awesome... !!! I added an install.txt with this info.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

aneuryzma’s picture

hi! I'm very very interested about this. I cannot see the error asp page where to place the code. Should I create a new one ?

I don't have access to all folders in my server unluckily...

thanks

aneuryzma’s picture

solved. The rewrite module is not enabled on my IIS server, so I had to change a line of code inside the imagecache.module to add "index.php?q=

return url($GLOBALS['base_url'] . '/index.php?q=' . file_directory_path() .'/imagecache/'. $presetname .'/'. $path, $args);