I have the following URL:
http://example.com/gallery/thumb.php?h=400&w=300&a=c&src=Img_0.jpg
Which I'm trying to use mod_rewrite
to make "pretty".
The desired URL is:
http://example.com/h/400/w/300/a/c/src/Img_0.jpg
And my mod_rewrite
is:
RewriteRule ^h/(*)/w/(*)/a/(*)/src/(*)$ /gallery/thumb.php?h=$1&w=$2&a=$3&src=$4 [L]
But I'm getting a 500 Internal Server Error
error which tells me I've written this rule wrong.
What did I write wrong about it?
EDIT: Not a duplicate. My question is pertaining to a particular code that I tried to write myself and did not manage to write a working code.