2011-12-08, 06:23 PM
I have an image host and I need to rewrite the URL's.
Images are uploaded to /upload/images/
The current url's look like this,
Due to this rewrite,
So, how can I undo this and rewrite di-K4RX.png to /upload/images/K4RX.png
Thanks.
Images are uploaded to /upload/images/
The current url's look like this,
http://domain.com/di-K4RX.png
Due to this rewrite,
RewriteRule ^di-(.*)\.(jpg|jpeg|png|gif|bmp)$ index.php?di=$1 [L]
RewriteRule ^dl-(.*)\.(jpg|jpeg|png|gif|bmp)$ index.php?dl=$1 [L]
So, how can I undo this and rewrite di-K4RX.png to /upload/images/K4RX.png
Thanks.