httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From PMilan...@nypl.org
Subject RE: [users@httpd] Mod_rewrite help
Date Wed, 19 Jan 2005 19:29:46 GMT
That should do it, but. I don't know if absolutely necessary, however I
put the entire URL in the Rewrite. -

 

RewriteRule ^/view/(.*)/(.*)$
http://www.blah.com/?album=$1$file=$2

 

Let me know if it helps-

 

P

 

  _____  

From: Jorge Schrauwen [mailto:jorge@blackdot.be] 
Sent: Wednesday, January 19, 2005 9:35 AM
To: users@httpd.apache.org
Subject: [users@httpd] Mod_rewrite help

 

hi all,

I'm new to mod_rewrite and regex for that mather...

and i'm stuk. here is what i'm trying to do:
i want to rewrite

/view/vacation/1.jpg

to

/index.php?album=vacation&file=1.jpg

 

this is what i have sofar:

---

RewriteEngine on
RewriteRule ^/view/(.*)/(.*) /index.php?album=$1&file=$2

--

 

thanx in advance

 

Jorge Schrauwen


Mime
View raw message