Hi guys, the thread name may be a bit confusing lol.
I have my images stored outside the root (public) folder of my server.
I want to be able to include the images on the page using clean urls. Basically without any ‘…/’, etc
The current url that works when accessing an image is
[I]http://localhost/vfw/public/../uploads/img/image.jpg[/I]
What I want to do is get rid of the ‘…/’ so the url looks like the following
[I]http://localhost/vfw/public/uploads/img/jpg/image.jpg[/I]
However, I would like this to work when the site is hosted directly in the root dir: ie:
[I]http://localhost/../uploads/img/jpg/image.jpg[/I]
To
[I]http://localhost/uploads/img/jpg/image.jpg[/I]
Look forward to your responses, this has been bugging me for the better part of the day
Just incase you guys need it. This is my current .htaccess file:
Options +FollowSymLinks
IndexIgnore */*
# Turn on the RewriteEngine
RewriteEngine On
# Rules
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php
Cheers
P.S. The links obviously wont work and the post editor wont let me remove the tag