Reputation: 3
I have try rewrite url like this link but show file not found
http://storage1.demo.com/download/2014/11/17/abc.zip?h=2de27c3e4b2cba560caca80f6e07ab2a&t=1416244533
this is my htaccess
RewriteEngine on
RewriteRule ^download/([0-9]+)/([0-9]+)/([0-9]+)/([a-zA-Z0-9_-\.]+)\.zip?h=(.*)&t=([0-9]+) index.php?type=get&y=$1&m=$2&d=$3&packagename=$4&h=$5&t=$6 [NC,L]
Upvotes: 0
Views: 915
Reputation: 18671
You can do that:
RewriteEngine on
RewriteCond %{QUERY_STRING} h=(.*)&t=([0-9]+)
RewriteRule download/([0-9]+)/([0-9]+)/([0-9]+)/([a-zA-Z0-9_\-\.]+)\.zip$ index.php?type=get&y=$1&m=$2&d=$3&packagename=$4&h=%1&t=%2 [NC,L]
With \- in [ ] !
Upvotes: 1