I have this domain sub.example.com
.
And I want to redirect to an image in a subfolder without changing the url. Like this:
sub.example.com/34 ==> sub.example.com/images/34.png # sub.example.com/34 is url but an image is on the screen
I tried this:
RewriteCond %{REQUEST_URI} (.*)
RewriteRule ^(.*)$ https://sub.example.com/images/$1.png
But this just becomes an infinity loop, because it's redirecting again and again. And it also doesn't use $1
(number behind whole domain).
Thank you in advanced :)