I am developing a multidomian admin panel in laravel. We upload images for specific domain inside admin panel example.com image: http://ift.tt/2ehLHqu
now inside domainname.com i want to use
<img src="http://ift.tt/2eQWEvE" >
instead of
<img src="http://ift.tt/2ehLHqu" >
approach i am using for this is i have a controller responsible for getting image content
http://ift.tt/2ehGmj3
and then i am using htaccess
AliasMatch "^/uploads/$" "/home/dir/public_html/example/public/uploads/$1"
RewriteRule ^uploads/(.*)$ image?path=uploads/domainname/$1
but it's not working. Any help will be greatly appreciated. Thanks
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire