tags:

views:

16

answers:

1

Hello,

I am trying to redirect from:

domain.com/uploads/$

to

domain.com/download.php?file=$

$ being the variable.

I have tried many different ways but do not seem to be redirecting, I've tried, R=301,L,QSA and in various different orders.

Anyone help? Thanks!

A: 

What about something like this :

RewriteEngine On
RewriteRule ^uploads/(.*) /download.php?file=$1 [R=301]
Pascal MARTIN