Hello, I'm a complete newbie with the .htaccess file and I'm having some trouble.
Firstly, this is the sort of URL I'm dealing with:
http://site.com/file.php?char=name&back=background
The full link will generate a png image with a character's name and a background. So, char=Character&back=trees would generate an image for a character named 'Character' using a background named 'trees'.
I've currently modified my .htaccess file to enable the image to be generated via:
http://site.com/Character.png
...however I'm having trouble adding the background part in.
What I want is something like this:
http://site.com/trees/Character.png
RewriteRule ^([a-zA-Z0-9_-]+)\.png$ file.php?char=$1\&background=$2
RewriteRule ^([a-zA-Z0-9_-]+)/\.png$ file.php?char=$1\&background=$2
I'd really appreciate it if someone could solve this for me! :)