0
任何想法,爲什麼這不工作?RedirectMatch> regex
RedirectMatch規則在.htaccess文件中。
RedirectMatch "(?:example.com)\/(?:images)\/(.*)(jp?g|bmp|png)" "http://www.example.com/assets/images/public/$1$2"
我有一種感覺,它歸結爲正則表達式不正確。
期望的結果: 基本上如果一個請求是由: http://www.example.com/images/some-logo.jpg 它得到的從這裏拉: http://www.example.com/assets/images/public/some-logo.jpg
真棒!歡呼聲Revo!那就是訣竅。 – supert3d