0
Today, I use this rule to create friendly URL and use MVC in my projects:
RewRiteRule ^(.*)$ /index.php?url=$1 [QSA,L]
In this case, I use Timthumb to generate cached images in PHP, and it returns me a URL, for example:
https://meusite.com/tim.php?src=https://meusite.com/uploads/images/2018/02/post-test.Png&w=560&h=230
How would I, in this case, use it with a user-friendly URL as well? I have no idea how to do this, it would also be on HTACCESS?
Yes. With the rule you put, you redirect all requests to the file
index.php
. If you want a request to be handled by a different file, such astim.php
, you should create the rule for such.– Woss
Thinking here, I don’t think you’ll notice the dynamic sizes that the image needs :(
– Lucas de Carvalho