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
Comment #1
jsese commentedUps, sorry I inserted the wrong code (I did not check whether I pasted the one it worked...).
The correct one is this:
Sorry for any inconvenience,
Regards.
Jordi.
Comment #2
dopry commentedJordi, you're awesome... !!! I added an install.txt with this info.
Comment #3
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #4
aneuryzma commentedhi! 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
Comment #5
aneuryzma commentedsolved. 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);