httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eugene Lee <list-apa...@fsck.net>
Subject Re: [users@httpd] Help with ReWrite...
Date Sat, 19 Jun 2004 13:06:27 GMT
On Sat, Jun 19, 2004 at 08:45:23AM -0400, Norman Peelman wrote:
: 
:  I would like to rewrite this:
: 
: www.mydomain.com/number.jpg or .gif
: 
: to
: 
: www.mydomain.com/myphpscript.php?myvar=number
: 
: ex.
: 
: www.mydomain.com/100.gif  becomes www.mydomain.com/myphpscript.php/myvar=100

Something like this should do it (untested):

	RewriteEngine on
	RewriteRule ^/(\d+)\.(jpg|gif)$ /myphpscript.php?myvar=$1 [R]


-- 
Eugene Lee

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message