Neil Thompson
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/0d00286c16186148b1c30949ae c269d1/3.j pg
but actually serve the content located at /images/plots/
http://192.168.0.19:8282/images/plots/0d00286c16186148b1c30949ae c269d1/3.j pg
Thanks in advance, Neil
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/0d00286c16186148b1c30949ae
but actually serve the content located at /images/plots/
http://192.168.0.19:8282/images/plots/0d00286c16186148b1c30949ae
Thanks in advance, Neil
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Just in case anyone is after the outcome it was:
RewriteRule ^attachments/([^~]+)/?$ /images/plots/$1
RewriteRule ^attachments/([^~]+)/?$ /images/plots/$1
ASKER