My project structure is like following ---
/
public
- .htaccess
- index.php
- template ...........
data
- uploads (all the uploaded image by this application)
- .....................
like these
before setting up virtual host for this project alls are working good but after setting up i can not able to see the uploaded images anywhere.
I might be happening for following reason
- my virtual host pointing public directory but uploaded images are under uploads directory.
- my question is that without changing the uploads directory to public directory how can i able to show my images
Followin is my .htaccess file ----------
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]
and on apache file host setting is as following---------
<VirtualHost 192.168.0.3:80>
DocumentRoot "/var/www/toletbd/public"
ServerName hometolet.local
# This should be omitted in the production environment
SetEnv APPLICATION_ENV development
<Directory "/var/www/toletbd/public">
Options Indexes MultiViews FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Thanks Ruzdi