.htaccess rewrite image file to php script

前端 未结 2 745
迷失自我
迷失自我 2020-11-30 10:41

Here is what I have for now in my .htaccess and this should work in future:

RewriteEngine On

RewriteCond %{HTTPS} !=on
RewriteRule ^/?(.*) http         


        
2条回答
  •  一个人的身影
    2020-11-30 11:06

    Correct answer is:

    RewriteRule ^/?tmp/(.*\.png)$ captcha.php?file=$1 [L]
    

    thx goes to Humbedooh@freenode

提交回复
热议问题