.htaccess - mod_rewrite change extensions .gif/.jpg to .png -
The rule that I'm doing without meaning is not working, I try to load all the images in 1 directory Images in PNG Directory. PNG is a mixture of .jpg and .gif
I want to be able to load the file tree by going to the tree. (No file is named). I'm sure my mistake is clear or my whole effort is wrong, I can not work it
The HTCS file is with images in the same folder, which is called thumb /
RewriteEngine On RewriteRule ^ ([^.] *). Gif $ / thumbs / $ 1.png [R, L, NC] I also tried this, but it only gives a broken link for both .gif and .png versions
RewriteRule ^ (. +) \. Gif $$ 1.png I also tried to do this, but it adds URL to its server path for some reason
RewriteRule ^ ([^.] *) \. Gif $ [RewriteEngine], L, NC] at $ 1.png
Rules can be used:
RewriteRule ^ Rev. ^ [[^.] +) \. PNG $ / $ 1 gif [L, NC, R]
Comments
Post a Comment