Skip to content

Instantly share code, notes, and snippets.

@quisido
Last active August 2, 2018 17:13
Show Gist options
  • Save quisido/1bb1a0598c1cc79d0ab88660f5ef3ff3 to your computer and use it in GitHub Desktop.
Save quisido/1bb1a0598c1cc79d0ab88660f5ef3ff3 to your computer and use it in GitHub Desktop.
Creating a Dynamic Vertical Gradient in PHP
RewriteEngine On
RewriteRule ^gradients\/(\d+)\-([a-fA-F\d]{6})-([a-fA-F\d]{6})\.gif$ gradient.php?height=$1&from=$2&to=$3 [L,NC]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment