Welcome Guest, Not a member yet? Register   Sign In
JavaScript link to images
#1

[eluser]JohnDoerther[/eluser]
Hi guys,

I just installed the lightbox plugin for Jquery which works great, the only thing that is still not working are the images (next button, loading image, ...).

CI is linking the images to /index.php/back/catalog/images/lightbox-btn-close.gif, but the actual images are in the root directory if my CI installation.

Is there an easy way in CI to say for example:

"Redirect all requests for /index.php/back/catalog/images/ to mywebsite.com/images" ?

Thanks in advance!


EDIT: so basically I want to define rules so that URL's for images are absolute paths and not links to controllers and functions..
I tried a redirect like

Code:
$route['back/catalog/images/:any'] = base_url(). "gfx/images/" . $1;

but this does not seem to work..


Messages In This Thread
JavaScript link to images - by El Forum - 07-23-2010, 12:56 PM
JavaScript link to images - by El Forum - 07-24-2010, 06:50 PM
JavaScript link to images - by El Forum - 07-24-2010, 10:14 PM



Theme © iAndrew 2016 - Forum software by © MyBB