this is a slightly nicer rewrite rule
RewriteEngine on
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1
I'm not exactly sure what your problem is, but I am
under the impression that you have trouble with the image path?
Wouldn't something like <?php echo $this->baseURL;?>/pub/foo/bar.jpg work for you?
Perhaps being lazy and just set everything relative to root /pub/foo/bar.jpg
|