1
0
mirror of https://github.com/mosbth/cimage.git synced 2025-07-21 00:31:20 +02:00
Files
php-cimage/webroot/htaccess
Mikael Roos d5546b669b spelling
2016-06-01 10:06:10 +02:00

18 lines
621 B
Plaintext

#
# Rewrite to have friendly urls to img.php, edit it to suite your environment.
#
# The example is set up as following.
#
# img A directory where all images are stored
# img/me.jpg Access a image as usual.
# image/me.jpg Access a image though img.php using htaccess rewrite.
# image/me.jpg?w=300 Using options to img.php.
#
# Subdirectories also work.
# img/me/me.jpg Direct access to the image.
# image/me/me.jpg Accessed through img.php.
# image/me/me.jpg?w=300 Using options to img.php.
#
RewriteEngine on
RewriteRule ^image/(.*)$ img.php?src=$1 [QSA,NC,L]