Turn these Web.config rules into .htaccess

0

Good evening,

I need to pass these parts of a web.config to .htaccess, but I am pretty sure.

<rule name="Regla 1-1">
              <match url="^camera/pictures/(.*)_small\.png$" ignoreCase="false" />
              <action type="Rewrite" url="camera/pictures/{R:1}.png" />
            </rule> 
            <rule name="Regla 2-2">
              <match url="^camera/thumbnails/(.*)\.png$" ignoreCase="false" />
              <action type="Rewrite" url="camera/thumbnails/{R:1}.png" />
            </rule>

Can anyone help me?

Thank you!

    
asked by anonymous 03.07.2017 / 06:15

1 answer

0

There's almost no need to explain.

RewriteEngine on

RewriteRule ^camera/pictures/(.*)_small\.png$ /camera/pictures/$1.png

The second rule rewrites to the same URL. It's not necessary.

    
03.07.2017 / 18:17