I've made an php script that builds an image and I want to use htaccess for a nice url
The script builds an image depending on some variables:
for example:
All options given
php url: image.php?width=300&height=400&color=red&var1=something&var2=somethingelse
nice url: image-w300-h400-cred-v1something-v2something.png
Few options given
php url: image.php?var1=something&color=black
nice url: image-v1something-cblack.png
I know how to build a rewriteRule for every combination but isn't there a way to automate that?