Link to home
Start Free TrialLog in
Avatar of Neil Thompson
Neil ThompsonFlag for United Kingdom of Great Britain and Northern Ireland

asked on

I would like to display a certain path in the URL but actually server content from another path using htaccess

Hi all

I would like to display a certain path in the URL but actually server content from another path. How can I achieve the following using my .htaccess Apache file please?

I want to have a URL with the word attachments
http://192.168.0.19:8282/attachments/0d00286c16186148b1c30949aec269d1/3.jpg

but actually serve the content located at /images/plots/
http://192.168.0.19:8282/images/plots/0d00286c16186148b1c30949aec269d1/3.jpg

Thanks in advance, Neil
ASKER CERTIFIED SOLUTION
Avatar of David S.
David S.
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Neil Thompson

ASKER

superb, many thanks :)
Just in case anyone is after the outcome it was:


RewriteRule ^attachments/([^~]+)/?$ /images/plots/$1